Author: janderwald
Date: Mon May 26 15:52:28 2008
New Revision: 33720
URL:
http://svn.reactos.org/svn/reactos?rev=33720&view=rev
Log:
- check if MDICLIENTINFO is available before retrieving information
- fixes a user32_winetest crash
Modified:
trunk/reactos/dll/win32/user32/windows/mdi.c
Modified: trunk/reactos/dll/win32/user32/windows/mdi.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/m…
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/mdi.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/user32/windows/mdi.c [iso-8859-1] Mon May 26 15:52:28 2008
@@ -305,7 +305,7 @@
{
MDICLIENTINFO *ci = get_client_info(hwndClient);
total = ci ? ci->nTotalCreated : 0;
- *id = ci->idFirstChild + ci->nActiveChildren;
+ *id = ci ? ci->idFirstChild + ci->nActiveChildren : 0;
TRACE("MDI child id %04x\n", *id);
}