explorer: Use the WCHAR string version of LoadLibrary.

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2020-10-18 23:33:28 +02:00 committed by Alexandre Julliard
parent 5e9df0bb15
commit 27431b0f3a
2 changed files with 2 additions and 2 deletions

View File

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

View File

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