mirror of
https://github.com/moparisthebest/curl
synced 2024-11-15 22:15:13 -05:00
win32: make DLL loading a no-op for UWP
Reported-by: Michael Brehm Fixes #4060 Closes #4072
This commit is contained in:
parent
909aca20b5
commit
e4b5dd2987
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user