diff --git a/win32ss/user/user32/windows/window.c b/win32ss/user/user32/windows/window.c index ccf0670bc1..8fd5e7d4fa 100644 --- a/win32ss/user/user32/windows/window.c +++ b/win32ss/user/user32/windows/window.c @@ -381,7 +381,11 @@ CreateWindowExA(DWORD dwExStyle, if (pWndParent->fnid != FNID_MDICLIENT) // wine uses WIN_ISMDICLIENT { WARN("WS_EX_MDICHILD, but parent %p is not MDIClient\n", hWndParent); +#ifdef __REACTOS__ + goto skip_mdi; +#else return NULL; +#endif } /* lpParams of WM_[NC]CREATE is different for MDI children. @@ -446,7 +450,9 @@ CreateWindowExA(DWORD dwExStyle, nHeight = mPos[1].y; } } - +#ifdef __REACTOS__ +skip_mdi: +#endif hwnd = User32CreateWindowEx(dwExStyle, lpClassName, lpWindowName, @@ -506,7 +512,11 @@ CreateWindowExW(DWORD dwExStyle, if (pWndParent->fnid != FNID_MDICLIENT) { WARN("WS_EX_MDICHILD, but parent %p is not MDIClient\n", hWndParent); +#ifdef __REACTOS__ + goto skip_mdi; +#else return NULL; +#endif } /* lpParams of WM_[NC]CREATE is different for MDI children. @@ -571,7 +581,9 @@ CreateWindowExW(DWORD dwExStyle, nHeight = mPos[1].y; } } - +#ifdef __REACTOS__ +skip_mdi: +#endif hwnd = User32CreateWindowEx(dwExStyle, (LPCSTR)lpClassName, (LPCSTR)lpWindowName,