Author: tfaber
Date: Fri Oct 28 22:15:53 2011
New Revision: 54264
URL:
http://svn.reactos.org/svn/reactos?rev=54264&view=rev
Log:
[USER32]
- Fix MSVC build
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] Fri Oct 28 22:15:53 2011
@@ -2605,8 +2605,9 @@
WPARAM wParam,
LPARAM lParam)
{
- if ( hDlg == HWND_TOPMOST || hDlg == HWND_BROADCAST ) return 0; // ReactOS
- HWND hwndCtrl = GetDlgItem( hDlg, nIDDlgItem );
+ HWND hwndCtrl;
+ if ( hDlg == HWND_TOPMOST || hDlg == HWND_BROADCAST ) return 0; // ReactOS
+ hwndCtrl = GetDlgItem( hDlg, nIDDlgItem );
if (hwndCtrl) return SendMessageA( hwndCtrl, Msg, wParam, lParam );
else return 0;
}
@@ -2624,8 +2625,9 @@
WPARAM wParam,
LPARAM lParam)
{
- if ( hDlg == HWND_TOPMOST || hDlg == HWND_BROADCAST ) return 0; // ReactOS
- HWND hwndCtrl = GetDlgItem( hDlg, nIDDlgItem );
+ HWND hwndCtrl;
+ if ( hDlg == HWND_TOPMOST || hDlg == HWND_BROADCAST ) return 0; // ReactOS
+ hwndCtrl = GetDlgItem( hDlg, nIDDlgItem );
if (hwndCtrl) return SendMessageW( hwndCtrl, Msg, wParam, lParam );
else return 0;
}