[User32]
authorJames Tabor <james.tabor@reactos.org>
Thu, 7 Jan 2010 18:59:13 +0000 (18:59 +0000)
committerJames Tabor <james.tabor@reactos.org>
Thu, 7 Jan 2010 18:59:13 +0000 (18:59 +0000)
- Patch by Marcus Meissner : Remove useless NULL check (Coverity).
- Will sync to wine after a review of new WOW implementation.

svn path=/trunk/; revision=44988

reactos/dll/win32/user32/windows/mdi.c

index 6372255..7c64403 100644 (file)
@@ -303,7 +303,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 ? ci->idFirstChild + ci->nActiveChildren : 0;
         TRACE("MDI child id %04x\n", *id);
     }