summaryrefslogtreecommitdiff
path: root/lib/system_win32.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-06-25 08:26:05 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-06-25 20:33:07 +0200
commite4b5dd29874c5746a35e9b3b8c8cfd01ffa4363a (patch)
treec482693efd917ca4640c2d4eaa061f681da7c4ac /lib/system_win32.c
parent909aca20b58e18e3a763d81aec3b38f8fc93a0b2 (diff)
downloadcurl-e4b5dd29874c5746a35e9b3b8c8cfd01ffa4363a.tar.gz
win32: make DLL loading a no-op for UWP
Reported-by: Michael Brehm Fixes #4060 Closes #4072
Diffstat (limited to 'lib/system_win32.c')
-rw-r--r--lib/system_win32.c7
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 */