Marcus Meissner : user32: Remove useless NULL check (Coverity).
Module: wine Branch: master Commit: 4d96ffb52b57ffbe6fd6a1229fbd40201bed2c63 URL: http://source.winehq.org/git/wine.git/?a=commit;h=4d96ffb52b57ffbe6fd6a1229f... Author: Marcus Meissner <marcus(a)jet.franken.de> Date: Wed Jan 6 16:47:00 2010 +0100 user32: Remove useless NULL check (Coverity). --- dlls/user32/mdi.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/user32/mdi.c b/dlls/user32/mdi.c index b5e934a..631d477 100644 --- a/dlls/user32/mdi.c +++ b/dlls/user32/mdi.c @@ -282,7 +282,7 @@ void MDI_CalcDefaultChildPos( HWND hwndClient, INT total, LPPOINT lpPos, INT del if (total < 0) /* we are called from CreateWindow */ { MDICLIENTINFO *ci = get_client_info(hwndClient); - total = ci ? ci->nTotalCreated : 0; + total = ci->nTotalCreated; *id = ci->idFirstChild + ci->nActiveChildren; TRACE("MDI child id %04x\n", *id); }
participants (1)
-
Alexandre Julliard