Commit 4d96ffb5 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

user32: Remove useless NULL check (Coverity).

parent 051fc345
...@@ -282,7 +282,7 @@ void MDI_CalcDefaultChildPos( HWND hwndClient, INT total, LPPOINT lpPos, INT del ...@@ -282,7 +282,7 @@ void MDI_CalcDefaultChildPos( HWND hwndClient, INT total, LPPOINT lpPos, INT del
if (total < 0) /* we are called from CreateWindow */ if (total < 0) /* we are called from CreateWindow */
{ {
MDICLIENTINFO *ci = get_client_info(hwndClient); MDICLIENTINFO *ci = get_client_info(hwndClient);
total = ci ? ci->nTotalCreated : 0; total = ci->nTotalCreated;
*id = ci->idFirstChild + ci->nActiveChildren; *id = ci->idFirstChild + ci->nActiveChildren;
TRACE("MDI child id %04x\n", *id); TRACE("MDI child id %04x\n", *id);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment