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:
parent
7435ddbc40
commit
64addb512b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue