mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 20:23:34 +00:00
[GDI32_APITEST]
Simplify code svn path=/trunk/; revision=56586
This commit is contained in:
parent
12ee9c9313
commit
cb383858f1
1 changed files with 8 additions and 11 deletions
|
@ -28,7 +28,7 @@ GetExpected(
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fuUsage != 0)
|
if (fuUsage != DIB_RGB_COLORS)
|
||||||
{
|
{
|
||||||
if (hdc == (HDC)-1)
|
if (hdc == (HDC)-1)
|
||||||
{
|
{
|
||||||
|
@ -76,16 +76,6 @@ GetExpected(
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lpbmih && (lpbmih != (PVOID)0xc0000000) && (lpbmih->biSize != 0))
|
|
||||||
{
|
|
||||||
if (hdc == (HDC)-1)
|
|
||||||
{
|
|
||||||
*pdwError = ERROR_INVALID_PARAMETER;
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
if ((lpbmih == NULL) ||
|
if ((lpbmih == NULL) ||
|
||||||
(lpbmih == (PVOID)0xC0000000) ||
|
(lpbmih == (PVOID)0xC0000000) ||
|
||||||
(lpbmih->biSize == 0))
|
(lpbmih->biSize == 0))
|
||||||
|
@ -93,6 +83,13 @@ GetExpected(
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (hdc == (HDC)-1)
|
||||||
|
{
|
||||||
|
*pdwError = ERROR_INVALID_PARAMETER;
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (lpbmi == (PVOID)0xc0000000) return FALSE;
|
if (lpbmi == (PVOID)0xc0000000) return FALSE;
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue