Initialized return value of 16->32 conversion of WM_MDIGETACTIVE in

case it's sent to a window that doesn't handle it (i.e. not MDI
client).
This commit is contained in:
Ove Kaaven 1999-02-19 15:33:59 +00:00 committed by Alexandre Julliard
parent 077c2732b8
commit 105afce7a5
1 changed files with 1 additions and 0 deletions

View File

@ -981,6 +981,7 @@ INT32 WINPROC_MapMsg16To32A( UINT16 msg16, WPARAM16 wParam16, UINT32 *pmsg32,
return 1; return 1;
case WM_MDIGETACTIVE: case WM_MDIGETACTIVE:
*plparam = (LPARAM)HeapAlloc( SystemHeap, 0, sizeof(BOOL32) ); *plparam = (LPARAM)HeapAlloc( SystemHeap, 0, sizeof(BOOL32) );
*(BOOL32*)(*plparam) = 0;
return 1; return 1;
case WM_MDISETMENU: case WM_MDISETMENU:
if(wParam16==TRUE) if(wParam16==TRUE)