[ros-diffs] [tkreuzer] 56586: [GDI32_APITEST] Simplify code
tkreuzer at svn.reactos.org
tkreuzer at svn.reactos.org
Mon May 14 11:48:19 UTC 2012
Author: tkreuzer
Date: Mon May 14 11:48:17 2012
New Revision: 56586
URL: http://svn.reactos.org/svn/reactos?rev=56586&view=rev
Log:
[GDI32_APITEST]
Simplify code
Modified:
trunk/rostests/apitests/gdi32/CreateDIBitmap.c
Modified: trunk/rostests/apitests/gdi32/CreateDIBitmap.c
URL: http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/gdi32/CreateDIBitmap.c?rev=56586&r1=56585&r2=56586&view=diff
==============================================================================
--- trunk/rostests/apitests/gdi32/CreateDIBitmap.c [iso-8859-1] (original)
+++ trunk/rostests/apitests/gdi32/CreateDIBitmap.c [iso-8859-1] Mon May 14 11:48:17 2012
@@ -28,7 +28,7 @@
return FALSE;
}
- if (fuUsage != 0)
+ if (fuUsage != DIB_RGB_COLORS)
{
if (hdc == (HDC)-1)
{
@@ -76,22 +76,19 @@
return TRUE;
}
- if (lpbmih && (lpbmih != (PVOID)0xc0000000) && (lpbmih->biSize != 0))
- {
- if (hdc == (HDC)-1)
- {
- *pdwError = ERROR_INVALID_PARAMETER;
- return FALSE;
- }
- }
-
-
if ((lpbmih == NULL) ||
(lpbmih == (PVOID)0xC0000000) ||
(lpbmih->biSize == 0))
{
return FALSE;
}
+
+ if (hdc == (HDC)-1)
+ {
+ *pdwError = ERROR_INVALID_PARAMETER;
+ return FALSE;
+ }
+
if (lpbmi == (PVOID)0xc0000000) return FALSE;
More information about the Ros-diffs
mailing list