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/CreateDIBi…
==============================================================================
--- 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;