From a79eb7852c8d87cabdd0dd9c6803804778ca0d96 Mon Sep 17 00:00:00 2001 From: Royce Mitchell III Date: Sat, 26 Jul 2003 23:12:08 +0000 Subject: [PATCH] put variables at top to eliminate build error in DIALOG_CreateControls32 svn path=/trunk/; revision=5283 --- reactos/lib/user32/windows/dialog.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/reactos/lib/user32/windows/dialog.c b/reactos/lib/user32/windows/dialog.c index 2ef485cef30..b2df6c93506 100644 --- a/reactos/lib/user32/windows/dialog.c +++ b/reactos/lib/user32/windows/dialog.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* $Id: dialog.c,v 1.11 2003/07/26 18:38:52 rcampbell Exp $ +/* $Id: dialog.c,v 1.12 2003/07/26 23:12:08 royce Exp $ * * PROJECT: ReactOS user32.dll * FILE: lib/user32/windows/input.c @@ -278,11 +278,12 @@ static BOOL DIALOG_CreateControls32( HWND hwnd, LPCSTR template, const DLG_TEMPL HINSTANCE hInst, BOOL unicode ) { DIALOGINFO * dlgInfo; - if (!(dlgInfo = GETDLGINFO(hwnd))) return -1; DLG_CONTROL_INFO info; HWND hwndCtrl, hwndDefButton = 0; INT items = dlgTemplate->nbItems; + if (!(dlgInfo = GETDLGINFO(hwnd))) return -1; + while (items--) { template = (LPCSTR)DIALOG_GetControl32( (WORD *)template, &info,