Author: jimtabor
Date: Thu Dec 15 00:42:14 2011
New Revision: 54655
URL:
http://svn.reactos.org/svn/reactos?rev=54655&view=rev
Log:
- Fix putty 0.62 dialog.
Modified:
trunk/reactos/dll/win32/user32/windows/dialog.c
Modified: trunk/reactos/dll/win32/user32/windows/dialog.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/d…
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/dialog.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/user32/windows/dialog.c [iso-8859-1] Thu Dec 15 00:42:14 2011
@@ -156,20 +156,18 @@
dlgInfo->idResult = IDOK;
SETDLGINFO( hWnd, dlgInfo );
-
- NtUserxSetDialogPointer( hWnd, dlgInfo );
}
else
{
return NULL;
}
}
+
if (dlgInfo)
{
- if (!(pWindow->state & WNDS_DIALOGWINDOW) || pWindow->fnid !=
FNID_DIALOG)
- {
- ERR("Wrong window class for Dialog! fnId 0x%x\n",
pWindow->fnid);
- return NULL;
+ if (!(pWindow->state & WNDS_DIALOGWINDOW))
+ {
+ NtUserxSetDialogPointer( hWnd, dlgInfo );
}
}
return dlgInfo;