advapi32: Load a resource dll as data file in RegLoadMUIStringW.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46266
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Akihiro Sagawa 2018-12-12 23:44:07 +09:00 committed by Alexandre Julliard
parent 7435ddbc40
commit 64addb512b
1 changed files with 2 additions and 1 deletions

View File

@ -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);