mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
[WIN32NT_APITEST] Fix NtGdiCreateBitmap test on x64
This commit is contained in:
parent
f68d8d5459
commit
a23e8da23e
1 changed files with 7 additions and 0 deletions
|
@ -54,10 +54,17 @@ void Test_NtGdiCreateBitmap_Params(void)
|
||||||
ok_ptr(NtGdiCreateBitmap(1, -2, 1, 1, (BYTE*)(LONG_PTR)0x80001234), NULL);
|
ok_ptr(NtGdiCreateBitmap(1, -2, 1, 1, (BYTE*)(LONG_PTR)0x80001234), NULL);
|
||||||
ok_long(GetLastError(), ERROR_SUCCESS);
|
ok_long(GetLastError(), ERROR_SUCCESS);
|
||||||
|
|
||||||
|
#ifndef _WIN64 // Win64 doesn't fail here
|
||||||
/* Test huge size */
|
/* Test huge size */
|
||||||
SetLastError(ERROR_SUCCESS);
|
SetLastError(ERROR_SUCCESS);
|
||||||
ok_ptr(NtGdiCreateBitmap(100000, 100000, 1, 1, NULL), NULL);
|
ok_ptr(NtGdiCreateBitmap(100000, 100000, 1, 1, NULL), NULL);
|
||||||
ok_long(GetLastError(), ERROR_NOT_ENOUGH_MEMORY);
|
ok_long(GetLastError(), ERROR_NOT_ENOUGH_MEMORY);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Test too huge size */
|
||||||
|
SetLastError(ERROR_SUCCESS);
|
||||||
|
ok_ptr(NtGdiCreateBitmap(100000, 100000, 1, 32, NULL), NULL);
|
||||||
|
ok_long(GetLastError(), ERROR_INVALID_PARAMETER);
|
||||||
|
|
||||||
/* Test huge size and valid bits */
|
/* Test huge size and valid bits */
|
||||||
SetLastError(ERROR_SUCCESS);
|
SetLastError(ERROR_SUCCESS);
|
||||||
|
|
Loading…
Reference in a new issue