mirror of
https://github.com/curl/curl.git
synced 2026-07-16 05:57:16 +03: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
1 changed files with 6 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue