diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-06-25 08:26:05 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-06-25 09:00:56 +0200 |
commit | 186c46cc2ed25642ae35916e4ee5863e54be4962 (patch) | |
tree | d3e8a98ac768d3c026e1a4641dce765dc3477d3f | |
parent | 35b8bea20f90873e321e1e77d8a9936245c11ac9 (diff) | |
download | curl-bagder/uwp.tar.gz |
win32: make DLL loading a no-op for UWPbagder/uwp
Reported-by: Michael Brehm
Fixes #4060
-rw-r--r-- | lib/system_win32.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/system_win32.c b/lib/system_win32.c index 1143fa6aa..52a5fd951 100644 --- a/lib/system_win32.c +++ b/lib/system_win32.c @@ -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 */ |