From: Akihiro Sagawa Subject: [PATCH] advapi32: Load a resource dll as data file in RegLoadMUIStringW. Message-Id: <20181212234328.0ADA.375B48EC@gmail.com> Date: Wed, 12 Dec 2018 23:44:07 +0900 Wine-Bugs: https://bugs.winehq.org/show_bug.cgi?id=46266 Signed-off-by: Akihiro Sagawa --- 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);