[ros-diffs] [jimtabor] 44988: [User32] - Patch by Marcus Meissner : Remove useless NULL check (Coverity). - Will sync to wine after a review of new WOW implementation.

jimtabor at svn.reactos.org jimtabor at svn.reactos.org
Thu Jan 7 19:59:13 CET 2010


Author: jimtabor
Date: Thu Jan  7 19:59:13 2010
New Revision: 44988

URL: http://svn.reactos.org/svn/reactos?rev=44988&view=rev
Log:
[User32]
- Patch by Marcus Meissner : Remove useless NULL check (Coverity).
- Will sync to wine after a review of new WOW implementation.

Modified:
    trunk/reactos/dll/win32/user32/windows/mdi.c

Modified: trunk/reactos/dll/win32/user32/windows/mdi.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/mdi.c?rev=44988&r1=44987&r2=44988&view=diff
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/mdi.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/user32/windows/mdi.c [iso-8859-1] Thu Jan  7 19:59:13 2010
@@ -303,7 +303,7 @@
     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);
     }




More information about the Ros-diffs mailing list