[PATCH] user32: remove useless NULL check (Coverity)

Marcus Meissner marcus at jet.franken.de
Wed Jan 6 09:47:00 CST 2010


Hi,

We dereference the pointer later on anyway, so
its useless.

Ciao, Marcus
---
 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);
     }
-- 
1.5.6



More information about the wine-patches mailing list