mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[USER32] MDIClientWndProc_common(): Properly sync to old Wine (#2843)
No impact. Missed part offb6304119a
Detected by Cppcheck: identicalInnerCondition. Addendum to303ece2421
(r72520).
This commit is contained in:
parent
ceccaae311
commit
95e5877027
1 changed files with 4 additions and 4 deletions
|
@ -1106,18 +1106,18 @@ LRESULT WINAPI MDIClientWndProc_common( HWND hwnd, UINT message, WPARAM wParam,
|
|||
|
||||
if (!(ci = get_client_info( hwnd )))
|
||||
{
|
||||
#ifdef __REACTOS__
|
||||
if (message == WM_NCCREATE)
|
||||
{
|
||||
#ifdef __REACTOS__
|
||||
if (!(ci = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*ci))))
|
||||
return FALSE;
|
||||
SetWindowLongPtrW( hwnd, GWLP_MDIWND, (LONG_PTR)ci );
|
||||
ci->hBmpClose = 0;
|
||||
NtUserSetWindowFNID( hwnd, FNID_MDICLIENT); // wine uses WIN_ISMDICLIENT
|
||||
#else
|
||||
if (message == WM_NCCREATE) win_set_flags( hwnd, WIN_ISMDICLIENT, 0 );
|
||||
#endif
|
||||
}
|
||||
#else
|
||||
if (message == WM_NCCREATE) win_set_flags( hwnd, WIN_ISMDICLIENT, 0 );
|
||||
#endif
|
||||
return unicode ? DefWindowProcW( hwnd, message, wParam, lParam ) :
|
||||
DefWindowProcA( hwnd, message, wParam, lParam );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue