summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Alekhin <alexander.alekhin@intel.com>2018-07-03 15:28:55 +0300
committerAlexander Alekhin <alexander.alekhin@intel.com>2018-07-03 15:28:55 +0300
commitb3578710cf918a9cd865d4bf137422f7e4ac3418 (patch)
treed9567f174672567d19ea2f87c6833a6211dbc050
parent117e97adac3d14f1aab935e82c257694b520bd5b (diff)
downloadopencv-b3578710cf918a9cd865d4bf137422f7e4ac3418.tar.gz
opencv-b3578710cf918a9cd865d4bf137422f7e4ac3418.tar.bz2
opencv-b3578710cf918a9cd865d4bf137422f7e4ac3418.zip
videoio(MSMF): fix 32-bit build crash
-rw-r--r--modules/videoio/src/cap_msmf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/videoio/src/cap_msmf.cpp b/modules/videoio/src/cap_msmf.cpp
index 61240bdf3c..beed7420d3 100644
--- a/modules/videoio/src/cap_msmf.cpp
+++ b/modules/videoio/src/cap_msmf.cpp
@@ -86,7 +86,7 @@
// MFCreateDXGIDeviceManager() is available since Win8 only.
// To avoid OpenCV loading failure on Win7 use dynamic detection of this symbol.
// Details: https://github.com/opencv/opencv/issues/11858
-typedef HRESULT (*FN_MFCreateDXGIDeviceManager)(UINT *resetToken, IMFDXGIDeviceManager **ppDeviceManager);
+typedef HRESULT (WINAPI *FN_MFCreateDXGIDeviceManager)(UINT *resetToken, IMFDXGIDeviceManager **ppDeviceManager);
static bool pMFCreateDXGIDeviceManager_initialized = false;
static FN_MFCreateDXGIDeviceManager pMFCreateDXGIDeviceManager = NULL;
static void init_MFCreateDXGIDeviceManager()