From a878cd2e464ad8ddc18ab2cd8e6532a04a164ea8 Mon Sep 17 00:00:00 2001 From: James Tabor Date: Sat, 16 Aug 2008 16:01:03 +0000 Subject: [PATCH] Wine update to dialog.c, see bug 3644. svn path=/trunk/; revision=35395 --- reactos/dll/win32/user32/windows/dialog.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/reactos/dll/win32/user32/windows/dialog.c b/reactos/dll/win32/user32/windows/dialog.c index f45142b614f..1980fb32b8e 100644 --- a/reactos/dll/win32/user32/windows/dialog.c +++ b/reactos/dll/win32/user32/windows/dialog.c @@ -755,14 +755,13 @@ static HWND DIALOG_CreateIndirect( HINSTANCE hInst, LPCVOID dlgTemplate, { rect.left += MulDiv(template.x, xBaseUnit, 4); rect.top += MulDiv(template.y, yBaseUnit, 8); + if( !(template.style & (WS_CHILD|DS_ABSALIGN)) ) + ClientToScreen( owner, (POINT *)&rect ); } if ( !(template.style & WS_CHILD) ) { INT dX, dY; - if( !(template.style & DS_ABSALIGN) ) - ClientToScreen( owner, (POINT *)&rect ); - /* try to fit it into the desktop */ if( (dX = rect.left + rect.right + GetSystemMetrics(SM_CXDLGFRAME)