https://git.reactos.org/?p=reactos.git;a=commitdiff;h=8c5308b5e8be4e6db41a9…
commit 8c5308b5e8be4e6db41a9e2c0a2fdb096c64cfd4
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Fri Mar 20 07:38:33 2020 +0900
Commit: GitHub <noreply(a)github.com>
CommitDate: Fri Mar 20 07:38:33 2020 +0900
[USER32] Relax conditions for creating MDI windows (#2454)
The creation conditions of MDI window was too strict. CORE-15633
---
win32ss/user/user32/windows/window.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/win32ss/user/user32/windows/window.c b/win32ss/user/user32/windows/window.c
index e94d9a1b250..40f051d3b6d 100644
--- a/win32ss/user/user32/windows/window.c
+++ b/win32ss/user/user32/windows/window.c
@@ -411,7 +411,7 @@ CreateWindowExA(DWORD dwExStyle,
if (pWndParent->fnid != FNID_MDICLIENT) // wine uses WIN_ISMDICLIENT
{
WARN("WS_EX_MDICHILD, but parent %p is not MDIClient\n",
hWndParent);
- return NULL;
+ goto skip_mdi;
}
/* lpParams of WM_[NC]CREATE is different for MDI children.
@@ -477,6 +477,7 @@ CreateWindowExA(DWORD dwExStyle,
}
}
+skip_mdi:
hwnd = User32CreateWindowEx(dwExStyle,
lpClassName,
lpWindowName,
@@ -536,7 +537,7 @@ CreateWindowExW(DWORD dwExStyle,
if (pWndParent->fnid != FNID_MDICLIENT)
{
WARN("WS_EX_MDICHILD, but parent %p is not MDIClient\n",
hWndParent);
- return NULL;
+ goto skip_mdi;
}
/* lpParams of WM_[NC]CREATE is different for MDI children.
@@ -602,6 +603,7 @@ CreateWindowExW(DWORD dwExStyle,
}
}
+skip_mdi:
hwnd = User32CreateWindowEx(dwExStyle,
(LPCSTR)lpClassName,
(LPCSTR)lpWindowName,