Author: tkreuzer
Date: Mon Nov 18 00:35:32 2013
New Revision: 61032
URL:
http://svn.reactos.org/svn/reactos?rev=61032&view=rev
Log:
[GDI32]
Fix MSVC warnings
Modified:
trunk/reactos/win32ss/gdi/gdi32/objects/eng.c
Modified: trunk/reactos/win32ss/gdi/gdi32/objects/eng.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/gdi32/objects/…
==============================================================================
--- trunk/reactos/win32ss/gdi/gdi32/objects/eng.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/gdi32/objects/eng.c [iso-8859-1] Mon Nov 18 00:35:32 2013
@@ -112,11 +112,14 @@
HGLOBAL Hg;
LPVOID Lock = NULL;
- if ((HRSrc = FindResourceW( (HMODULE) h, MAKEINTRESOURCEW(iName),
MAKEINTRESOURCEW(iType))))
- {
- if ((Size = SizeofResource( (HMODULE) h, HRSrc )))
+ HRSrc = FindResourceW((HMODULE)h, MAKEINTRESOURCEW(iName), MAKEINTRESOURCEW(iType));
+ if (HRSrc != NULL)
+ {
+ 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 );
}