1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

win32: make DLL loading a no-op for UWP

Reported-by: Michael Brehm
Fixes #4060
Closes #4072
This commit is contained in:
Daniel Stenberg 2019-06-25 08:26:05 +02:00
parent 909aca20b5
commit e4b5dd2987
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -367,6 +367,7 @@ bool Curl_verify_windows_version(const unsigned int majorVersion,
*/
HMODULE Curl_load_library(LPCTSTR filename)
{
#ifndef CURL_WINDOWS_APP
HMODULE hModule = NULL;
LOADLIBRARYEX_FN pLoadLibraryEx = NULL;
@ -421,8 +422,12 @@ HMODULE Curl_load_library(LPCTSTR filename)
free(path);
}
}
return hModule;
#else
/* the Universal Windows Platform (UWP) can't do this */
(void)filename;
return NULL;
#endif
}
#endif /* WIN32 */