Commit 483c548e authored by Ove Kaaven's avatar Ove Kaaven Committed by Alexandre Julliard

CreateDialogParamA should not call CreateDialogParamW, because

that'd create a dialog box with a Unicode dialog procedure...
parent 736eef4a
...@@ -825,14 +825,11 @@ HWND WINAPI CreateDialogParamA( HINSTANCE hInst, LPCSTR name, ...@@ -825,14 +825,11 @@ HWND WINAPI CreateDialogParamA( HINSTANCE hInst, LPCSTR name,
HWND owner, DLGPROC dlgProc, HWND owner, DLGPROC dlgProc,
LPARAM param ) LPARAM param )
{ {
if (HIWORD(name)) HANDLE hrsrc = FindResourceA( hInst, name, RT_DIALOGA );
{ if (!hrsrc) return 0;
LPWSTR str = HEAP_strdupAtoW( GetProcessHeap(), 0, name ); return CreateDialogIndirectParamA( hInst,
HWND hwnd = CreateDialogParamW( hInst, str, owner, dlgProc, param); (LPVOID)LoadResource(hInst, hrsrc),
HeapFree( GetProcessHeap(), 0, str ); owner, dlgProc, param );
return hwnd;
}
return CreateDialogParamW( hInst, (LPCWSTR)name, owner, dlgProc, param );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment