From ca6eeb6640348e58510696c8ea770c588f862705 Mon Sep 17 00:00:00 2001 From: James Tabor Date: Thu, 15 Dec 2011 00:42:14 +0000 Subject: [PATCH] - Fix putty 0.62 dialog. svn path=/trunk/; revision=54655 --- reactos/dll/win32/user32/windows/dialog.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/reactos/dll/win32/user32/windows/dialog.c b/reactos/dll/win32/user32/windows/dialog.c index 1a8071666f4..c194133d5ee 100644 --- a/reactos/dll/win32/user32/windows/dialog.c +++ b/reactos/dll/win32/user32/windows/dialog.c @@ -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;