]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
win32: make DLL loading a no-op for UWP
authorDaniel Stenberg <daniel@haxx.se>
Tue, 25 Jun 2019 06:26:05 +0000 (08:26 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 25 Jun 2019 18:33:07 +0000 (20:33 +0200)
Reported-by: Michael Brehm
Fixes #4060
Closes #4072

lib/system_win32.c

index 1143fa6aae35ab928b965ed46d2eed0ffbbdda8a..52a5fd95197e7afcc6d54f1c64589635a2e4d4ee 100644 (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 */