mirror of
https://github.com/reactos/reactos.git
synced 2024-09-09 20:30:04 +00:00
- check if MDICLIENTINFO is available before retrieving information
- fixes a user32_winetest crash svn path=/trunk/; revision=33720
This commit is contained in:
parent
4204cdca6e
commit
92d954c542
|
@ -305,7 +305,7 @@ void MDI_CalcDefaultChildPos( HWND hwndClient, INT total, LPPOINT lpPos, INT del
|
||||||
{
|
{
|
||||||
MDICLIENTINFO *ci = get_client_info(hwndClient);
|
MDICLIENTINFO *ci = get_client_info(hwndClient);
|
||||||
total = ci ? ci->nTotalCreated : 0;
|
total = ci ? ci->nTotalCreated : 0;
|
||||||
*id = ci->idFirstChild + ci->nActiveChildren;
|
*id = ci ? ci->idFirstChild + ci->nActiveChildren : 0;
|
||||||
TRACE("MDI child id %04x\n", *id);
|
TRACE("MDI child id %04x\n", *id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue