- Fix putty 0.62 dialog.
authorJames Tabor <james.tabor@reactos.org>
Thu, 15 Dec 2011 00:42:14 +0000 (00:42 +0000)
committerJames Tabor <james.tabor@reactos.org>
Thu, 15 Dec 2011 00:42:14 +0000 (00:42 +0000)
svn path=/trunk/; revision=54655

reactos/dll/win32/user32/windows/dialog.c

index 1a80716..c194133 100644 (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;