[PROGMAN][CRT][USER32] Do not use LoadLibraryEx() NT6+ flags (#3152)

CORE-12004
This commit is contained in:
Serge Gautherie 2020-09-13 23:42:09 +02:00 committed by GitHub
parent aad9bb8e8a
commit a04831677e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

@ -113,7 +113,7 @@ HMODULE _CrtGetUser32()
{
if (_CrtUser32Handle == NULL)
{
HMODULE mod = LoadLibraryExW(L"user32.dll", NULL, LOAD_LIBRARY_SEARCH_SYSTEM32);
HMODULE mod = LoadLibraryExW(L"user32.dll", NULL, 0 /* NT6+: LOAD_LIBRARY_SEARCH_SYSTEM32 */);
if (mod == NULL)
mod = (HMODULE)INVALID_HANDLE_VALUE;