|
|
@ -80,7 +80,7 @@ static cv::Mutex _icvInitFFMPEG_mutex; |
|
|
|
static const HMODULE cv_GetCurrentModule() |
|
|
|
static const HMODULE cv_GetCurrentModule() |
|
|
|
{ |
|
|
|
{ |
|
|
|
HMODULE h = 0; |
|
|
|
HMODULE h = 0; |
|
|
|
#if _WIN32_WINNT >= 0x0501 |
|
|
|
#if _WIN32_WINNT >= 0x0501 && (!defined(WINAPI_FAMILY) || (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP)) |
|
|
|
::GetModuleHandleEx(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS | GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT, |
|
|
|
::GetModuleHandleEx(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS | GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT, |
|
|
|
reinterpret_cast<LPCTSTR>(cv_GetCurrentModule), |
|
|
|
reinterpret_cast<LPCTSTR>(cv_GetCurrentModule), |
|
|
|
&h); |
|
|
|
&h); |
|
|
|