[User32]
authorJames Tabor <james.tabor@reactos.org>
Wed, 13 Jul 2016 00:40:07 +0000 (00:40 +0000)
committerJames Tabor <james.tabor@reactos.org>
Wed, 13 Jul 2016 00:40:07 +0000 (00:40 +0000)
- Fix regression in API:RealGetWindowClass test due to wine sync/port.
- ReactOS use of DIALOG_get_info is an enhanced fork of the same wine function.

svn path=/trunk/; revision=71915

reactos/win32ss/user/user32/windows/dialog.c

index a3f3b08..394258c 100644 (file)
@@ -1678,7 +1678,7 @@ DefDlgProcA(
     BOOL result = FALSE;
 
     /* Perform DIALOGINFO initialization if not done */
     BOOL result = FALSE;
 
     /* Perform DIALOGINFO initialization if not done */
-    if(!(dlgInfo = DIALOG_get_info( hDlg, Msg == WM_NCCREATE ))) return 0;
+    if(!(dlgInfo = DIALOG_get_info( hDlg, TRUE ))) return 0; //// REACTOS : Always TRUE! See RealGetWindowClass.
 
     SetWindowLongPtrW( hDlg, DWLP_MSGRESULT, 0 );
 
 
     SetWindowLongPtrW( hDlg, DWLP_MSGRESULT, 0 );
 
@@ -1738,7 +1738,7 @@ DefDlgProcW(
     BOOL result = FALSE;
 
     /* Perform DIALOGINFO initialization if not done */
     BOOL result = FALSE;
 
     /* Perform DIALOGINFO initialization if not done */
-    if(!(dlgInfo = DIALOG_get_info( hDlg, Msg == WM_NCCREATE ))) return 0;
+    if(!(dlgInfo = DIALOG_get_info( hDlg, TRUE ))) return 0; //// REACTOS : Always TRUE! See RealGetWindowClass.
 
     SetWindowLongPtrW( hDlg, DWLP_MSGRESULT, 0 );
 
 
     SetWindowLongPtrW( hDlg, DWLP_MSGRESULT, 0 );