diff --git a/dlls/advapi32/registry.c b/dlls/advapi32/registry.c index 3018372a63e..14604e010e3 100644 --- a/dlls/advapi32/registry.c +++ b/dlls/advapi32/registry.c @@ -3240,7 +3240,8 @@ LSTATUS WINAPI RegLoadMUIStringW(HKEY hKey, LPCWSTR pwszValue, LPWSTR pwszBuffer uiStringId = atoiW(pComma+2); *pComma = '\0'; - hModule = LoadLibraryW(pwszExpandedBuffer + 1); + hModule = LoadLibraryExW(pwszExpandedBuffer + 1, NULL, + LOAD_LIBRARY_AS_DATAFILE | LOAD_LIBRARY_AS_IMAGE_RESOURCE); if (!hModule || !load_string(hModule, uiStringId, pwszBuffer, cbBuffer/sizeof(WCHAR))) result = ERROR_BADKEY; FreeLibrary(hModule);