mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 05:52:57 +00:00
[ROSTESTS] fix x64 build and fix/disable warnings
This commit is contained in:
parent
6a67450893
commit
42d2d5ec9c
56 changed files with 229 additions and 171 deletions
|
@ -104,7 +104,7 @@ START_TEST(NtGdiCreateDIBSection)
|
|||
/* Test a wrong HDC */
|
||||
SetLastError(0);
|
||||
pvBits = 0;
|
||||
hbmp = NtGdiCreateDIBSection((HDC)0xdeadbeef, NULL, 0, pbmi, 0, cjHeader, 0, 0, &pvBits);
|
||||
hbmp = NtGdiCreateDIBSection((HDC)(LONG_PTR)0xdeadbeef, NULL, 0, pbmi, 0, cjHeader, 0, 0, &pvBits);
|
||||
TEST(pvBits != 0);
|
||||
TEST(hbmp != 0);
|
||||
TEST(GetLastError() == 8);
|
||||
|
@ -122,7 +122,7 @@ START_TEST(NtGdiCreateDIBSection)
|
|||
/* Test invalid pbmi */
|
||||
SetLastError(0);
|
||||
pvBits = (PVOID)-1;
|
||||
hbmp = NtGdiCreateDIBSection(hDC, NULL, 0, (PVOID)0x80001234, 0, cjHeader, 0, 0, &pvBits);
|
||||
hbmp = NtGdiCreateDIBSection(hDC, NULL, 0, (PVOID)(LONG_PTR)0x80001234, 0, cjHeader, 0, 0, &pvBits);
|
||||
TEST(pvBits == (PVOID)-1);
|
||||
TEST(hbmp == 0);
|
||||
TEST(GetLastError() == ERROR_INVALID_PARAMETER);
|
||||
|
@ -131,7 +131,7 @@ START_TEST(NtGdiCreateDIBSection)
|
|||
/* Test invalid pbmi */
|
||||
SetLastError(0);
|
||||
pvBits = (PVOID)-1;
|
||||
hbmp = NtGdiCreateDIBSection(hDC, NULL, 0, (PVOID)1, 0, cjHeader, 0, 0, &pvBits);
|
||||
hbmp = NtGdiCreateDIBSection(hDC, NULL, 0, (PVOID)(LONG_PTR)1, 0, cjHeader, 0, 0, &pvBits);
|
||||
TEST(pvBits == (PVOID)-1);
|
||||
TEST(hbmp == 0);
|
||||
TEST(GetLastError() == ERROR_INVALID_PARAMETER);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue