- check if MDICLIENTINFO is available before retrieving information

- fixes a user32_winetest crash

svn path=/trunk/; revision=33720
This commit is contained in:
Johannes Anderwald 2008-05-26 20:52:28 +00:00
parent 4204cdca6e
commit 92d954c542

View file

@ -305,7 +305,7 @@ void MDI_CalcDefaultChildPos( HWND hwndClient, INT total, LPPOINT lpPos, INT del
{
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);
}