[GDI32]
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Mon, 18 Nov 2013 00:35:32 +0000 (00:35 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Mon, 18 Nov 2013 00:35:32 +0000 (00:35 +0000)
Fix MSVC warnings

svn path=/trunk/; revision=61032

reactos/win32ss/gdi/gdi32/objects/eng.c

index b8d3d8e..fbdaa58 100644 (file)
@@ -112,11 +112,14 @@ EngFindResource(HANDLE h,
     HGLOBAL Hg;
     LPVOID Lock = NULL;
 
     HGLOBAL Hg;
     LPVOID Lock = NULL;
 
-    if ((HRSrc = FindResourceW( (HMODULE) h, MAKEINTRESOURCEW(iName), MAKEINTRESOURCEW(iType))))
+    HRSrc = FindResourceW((HMODULE)h, MAKEINTRESOURCEW(iName), MAKEINTRESOURCEW(iType));
+    if (HRSrc != NULL)
     {
     {
-        if ((Size = SizeofResource( (HMODULE) h, HRSrc )))
+        Size = SizeofResource((HMODULE)h, HRSrc);
+        if (Size != 0)
         {
         {
-            if ((Hg = LoadResource( (HMODULE) h, HRSrc )))
+            Hg = LoadResource((HMODULE)h, HRSrc);
+            if (Hg != NULL)
             {
                 Lock = LockResource( Hg );
             }
             {
                 Lock = LockResource( Hg );
             }