Skip to content
Permalink
Browse files

win32: make DLL loading a no-op for UWP

Reported-by: Michael Brehm
Fixes #4060
Closes #4072
  • Loading branch information...
bagder committed Jun 25, 2019
1 parent 909aca2 commit e4b5dd29874c5746a35e9b3b8c8cfd01ffa4363a
Showing with 6 additions and 1 deletion.
  1. +6 −1 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 */

0 comments on commit e4b5dd2

Please sign in to comment.
You can’t perform that action at this time.