- Fix putty 0.62 dialog.

svn path=/trunk/; revision=54655
This commit is contained in:
James Tabor
2011-12-15 00:42:14 +00:00
parent b3740c4b79
commit ca6eeb6640
+3 -5
View File
@@ -156,20 +156,18 @@ DIALOGINFO *DIALOG_get_info( HWND hWnd, BOOL create )
dlgInfo->idResult = IDOK;
SETDLGINFO( hWnd, dlgInfo );
NtUserxSetDialogPointer( hWnd, dlgInfo );
}
else
{
return NULL;
}
}
if (dlgInfo)
{
if (!(pWindow->state & WNDS_DIALOGWINDOW) || pWindow->fnid != FNID_DIALOG)
if (!(pWindow->state & WNDS_DIALOGWINDOW))
{
ERR("Wrong window class for Dialog! fnId 0x%x\n", pWindow->fnid);
return NULL;
NtUserxSetDialogPointer( hWnd, dlgInfo );
}
}
return dlgInfo;