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

Alexandre Julliard julliard at winehq.org
Wed Dec 12 15:16:20 CST 2018


Module: wine
Branch: master
Commit: 64addb512b6274e0f393439959ceaa0a0d00fc3a
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=64addb512b6274e0f393439959ceaa0a0d00fc3a

Author: Akihiro Sagawa <sagawa.aki at gmail.com>
Date:   Wed Dec 12 23:44:07 2018 +0900

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 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/advapi32/registry.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/advapi32/registry.c b/dlls/advapi32/registry.c
index 3018372..14604e0 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);




More information about the wine-cvs mailing list