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:
parent
5e9df0bb15
commit
27431b0f3a
|
@ -1041,7 +1041,7 @@ void manage_desktop( WCHAR *arg )
|
||||||
initialize_systray( graphics_driver, using_root, enable_shell );
|
initialize_systray( graphics_driver, using_root, enable_shell );
|
||||||
if (!using_root) initialize_launchers( hwnd );
|
if (!using_root) initialize_launchers( hwnd );
|
||||||
|
|
||||||
if ((shell32 = LoadLibraryA( "shell32.dll" )) &&
|
if ((shell32 = LoadLibraryW( L"shell32.dll" )) &&
|
||||||
(pShellDDEInit = (void *)GetProcAddress( shell32, (LPCSTR)188)))
|
(pShellDDEInit = (void *)GetProcAddress( shell32, (LPCSTR)188)))
|
||||||
{
|
{
|
||||||
pShellDDEInit( TRUE );
|
pShellDDEInit( TRUE );
|
||||||
|
|
|
@ -375,7 +375,7 @@ static void run_dialog(void)
|
||||||
LPCSTR lpszTitle, LPCSTR lpszDesc, DWORD dwFlags);
|
LPCSTR lpszTitle, LPCSTR lpszDesc, DWORD dwFlags);
|
||||||
HMODULE hShell32;
|
HMODULE hShell32;
|
||||||
|
|
||||||
hShell32 = LoadLibraryA("shell32");
|
hShell32 = LoadLibraryW(L"shell32");
|
||||||
pRunFileDlg = (void*)GetProcAddress(hShell32, (LPCSTR)61);
|
pRunFileDlg = (void*)GetProcAddress(hShell32, (LPCSTR)61);
|
||||||
|
|
||||||
pRunFileDlg(NULL, NULL, NULL, NULL, NULL, 0);
|
pRunFileDlg(NULL, NULL, NULL, NULL, NULL, 0);
|
||||||
|
|
Loading…
Reference in New Issue