Michael Stefaniuc : explorer: Use the WCHAR string version of LoadLibrary.
Alexandre Julliard
julliard at winehq.org
Mon Oct 19 15:54:05 CDT 2020
Module: wine
Branch: master
Commit: 27431b0f3a0383559d5dd2cc6de4f1a3770ca714
URL: https://source.winehq.org/git/wine.git/?a=commit;h=27431b0f3a0383559d5dd2cc6de4f1a3770ca714
Author: Michael Stefaniuc <mstefani at winehq.org>
Date: Sun Oct 18 23:33:28 2020 +0200
explorer: Use the WCHAR string version of LoadLibrary.
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
programs/explorer/desktop.c | 2 +-
programs/explorer/startmenu.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/programs/explorer/desktop.c b/programs/explorer/desktop.c
index 6f1ff54c143..f525c23d819 100644
--- a/programs/explorer/desktop.c
+++ b/programs/explorer/desktop.c
@@ -1041,7 +1041,7 @@ void manage_desktop( WCHAR *arg )
initialize_systray( graphics_driver, using_root, enable_shell );
if (!using_root) initialize_launchers( hwnd );
- if ((shell32 = LoadLibraryA( "shell32.dll" )) &&
+ if ((shell32 = LoadLibraryW( L"shell32.dll" )) &&
(pShellDDEInit = (void *)GetProcAddress( shell32, (LPCSTR)188)))
{
pShellDDEInit( TRUE );
diff --git a/programs/explorer/startmenu.c b/programs/explorer/startmenu.c
index f5f50bb3e72..3173ae21fc6 100644
--- a/programs/explorer/startmenu.c
+++ b/programs/explorer/startmenu.c
@@ -375,7 +375,7 @@ static void run_dialog(void)
LPCSTR lpszTitle, LPCSTR lpszDesc, DWORD dwFlags);
HMODULE hShell32;
- hShell32 = LoadLibraryA("shell32");
+ hShell32 = LoadLibraryW(L"shell32");
pRunFileDlg = (void*)GetProcAddress(hShell32, (LPCSTR)61);
pRunFileDlg(NULL, NULL, NULL, NULL, NULL, 0);
More information about the wine-cvs
mailing list