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,
HWND owner, DLGPROC dlgProc,
LPARAM param )
{
if (HIWORD(name))
{
LPWSTR str = HEAP_strdupAtoW( GetProcessHeap(), 0, name );
HWND hwnd = CreateDialogParamW( hInst, str, owner, dlgProc, param);
HeapFree( GetProcessHeap(), 0, str );
return hwnd;
}
return CreateDialogParamW( hInst, (LPCWSTR)name, owner, dlgProc, param );
HANDLE hrsrc = FindResourceA( hInst, name, RT_DIALOGA );
if (!hrsrc) return 0;
return CreateDialogIndirectParamA( hInst,
(LPVOID)LoadResource(hInst, hrsrc),
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