[User32]
authorJames Tabor <james.tabor@reactos.org>
Wed, 23 Nov 2016 15:42:05 +0000 (15:42 +0000)
committerJames Tabor <james.tabor@reactos.org>
Wed, 23 Nov 2016 15:42:05 +0000 (15:42 +0000)
- Fix dialog pop up flicker. Regression from 73333.

svn path=/trunk/; revision=73359

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

index 680e467..aa39401 100644 (file)
@@ -930,6 +930,8 @@ static HWND DIALOG_CreateIndirect( HINSTANCE hInst, LPCVOID dlgTemplate,
             owner = parent;
         }
         ////// Wine'ie babies need to fix your code!!!! CORE-11633
+        if (!parent) parent = GetAncestor( owner, GA_ROOT );
+
         if (parent)
         {
            owner = parent;