Fix build for UWP

backport of commit: f18cbd036a
This commit is contained in:
Victor Romero
2019-08-03 12:53:38 -07:00
committed by Alexander Alekhin
parent 960bb540ec
commit 987bb2ca61
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ static cv::String getModuleLocation(const void* addr)
CV_UNUSED(addr);
#ifdef _WIN32
HMODULE m = 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,
reinterpret_cast<LPCTSTR>(addr),
&m);