mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 05:25:48 +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
|
@ -51,7 +51,7 @@ void Test_NtGdiCreateBitmap_Params(void)
|
|||
|
||||
/* Test negative cy and invalid bits */
|
||||
SetLastError(ERROR_SUCCESS);
|
||||
ok_ptr(NtGdiCreateBitmap(1, -2, 1, 1, (BYTE*)0x80001234), NULL);
|
||||
ok_ptr(NtGdiCreateBitmap(1, -2, 1, 1, (BYTE*)(LONG_PTR)0x80001234), NULL);
|
||||
ok_long(GetLastError(), ERROR_SUCCESS);
|
||||
|
||||
/* Test huge size */
|
||||
|
@ -66,7 +66,7 @@ void Test_NtGdiCreateBitmap_Params(void)
|
|||
|
||||
/* Test huge size and invalid bits */
|
||||
SetLastError(ERROR_SUCCESS);
|
||||
ok_ptr(NtGdiCreateBitmap(100000, 100000, 1, 1, (BYTE*)0x80001234), NULL);
|
||||
ok_ptr(NtGdiCreateBitmap(100000, 100000, 1, 1, (BYTE*)(LONG_PTR)0x80001234), NULL);
|
||||
ok_long(GetLastError(), ERROR_SUCCESS);
|
||||
|
||||
/* Test cPlanes == 0 */
|
||||
|
@ -148,7 +148,7 @@ void Test_NtGdiCreateBitmap_Params(void)
|
|||
|
||||
/* Test bad pointer */
|
||||
SetLastError(ERROR_SUCCESS);
|
||||
ok_ptr(NtGdiCreateBitmap(1, 1, 1, 1, (BYTE*)0x80001234), NULL);
|
||||
ok_ptr(NtGdiCreateBitmap(1, 1, 1, 1, (BYTE*)(LONG_PTR)0x80001234), NULL);
|
||||
ok_long(GetLastError(), ERROR_SUCCESS);
|
||||
|
||||
/* Test pointer alignment */
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -40,7 +40,7 @@ START_TEST(NtGdiExtTextOutW)
|
|||
hDC = GetDC(hWnd);
|
||||
|
||||
lpstr = L"Hallo";
|
||||
len = wcslen(lpstr);
|
||||
len = lstrlenW(lpstr);
|
||||
|
||||
ret = NtGdiExtTextOutW(hDC, 0, 0, 0, &rect, lpstr, len, Dx, 0);
|
||||
ok_int(ret, 1);
|
||||
|
|
|
@ -128,7 +128,7 @@ Test_Params(void)
|
|||
TEST(GetLastError() == 0);
|
||||
|
||||
SetLastError(0);
|
||||
ret = NtGdiPolyPolyDraw(hDC, Points, (PVOID)0x81000000, 2, 1);
|
||||
ret = NtGdiPolyPolyDraw(hDC, Points, (PVOID)(LONG_PTR)0x81000000, 2, 1);
|
||||
TEST(ret == 0);
|
||||
TEST(GetLastError() == 0);
|
||||
|
||||
|
@ -138,7 +138,7 @@ Test_Params(void)
|
|||
TEST(GetLastError() == 0);
|
||||
|
||||
SetLastError(0);
|
||||
ret = NtGdiPolyPolyDraw(hDC, (PVOID)0x81000000, Count1, 2, 1);
|
||||
ret = NtGdiPolyPolyDraw(hDC, (PVOID)(LONG_PTR)0x81000000, Count1, 2, 1);
|
||||
TEST(ret == 0);
|
||||
TEST(GetLastError() == 0);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue