mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 16:23:01 +00:00
Revert r47130, it was already comitted.
svn path=/trunk/; revision=47132
This commit is contained in:
parent
2545e83084
commit
bfe6479cf7
2 changed files with 1 additions and 23 deletions
|
@ -21,8 +21,6 @@ Test_NtGdiCreateCompatibleDC(PTESTINFO pti)
|
||||||
/* The default pen should be GetStockObject(BLACK_PEN) */
|
/* The default pen should be GetStockObject(BLACK_PEN) */
|
||||||
hObj = SelectObject(hDC, GetStockObject(WHITE_PEN));
|
hObj = SelectObject(hDC, GetStockObject(WHITE_PEN));
|
||||||
TEST(hObj == GetStockObject(BLACK_PEN));
|
TEST(hObj == GetStockObject(BLACK_PEN));
|
||||||
|
|
||||||
TEST(NtGdiDeleteObjectApp(hDC) != 0);
|
|
||||||
|
|
||||||
TEST(NtGdiDeleteObjectApp(hDC) != 0);
|
TEST(NtGdiDeleteObjectApp(hDC) != 0);
|
||||||
|
|
||||||
|
|
|
@ -23,27 +23,7 @@ Test_NtGdiDeleteObjectApp(PTESTINFO pti)
|
||||||
TEST(NtGdiDeleteObjectApp(hdc) == 1);
|
TEST(NtGdiDeleteObjectApp(hdc) == 1);
|
||||||
TEST(GetLastError() == 0);
|
TEST(GetLastError() == 0);
|
||||||
TEST(IsHandleValid(hdc) == 0);
|
TEST(IsHandleValid(hdc) == 0);
|
||||||
|
|
||||||
/* Delete a display DC */
|
|
||||||
SetLastError(0);
|
|
||||||
hdc = CreateDC("DISPLAY", NULL, NULL, NULL);
|
|
||||||
ASSERT(IsHandleValid(hdc) == 1);
|
|
||||||
TEST(NtGdiDeleteObjectApp(hdc) != 0);
|
|
||||||
TEST(GetLastError() == 0);
|
|
||||||
TEST(IsHandleValid(hdc) == 1);
|
|
||||||
TEST(SelectObject(hdc, GetStockObject(WHITE_PEN)) == NULL);
|
|
||||||
TESTX(GetLastError() == ERROR_INVALID_PARAMETER, "GetLasterror returned 0x%08x\n", (unsigned int)GetLastError());
|
|
||||||
|
|
||||||
/* Once more */
|
|
||||||
SetLastError(0);
|
|
||||||
hdc = GetDC(0);
|
|
||||||
ASSERT(IsHandleValid(hdc) == 1);
|
|
||||||
TEST(NtGdiDeleteObjectApp(hdc) != 0);
|
|
||||||
TEST(GetLastError() == 0);
|
|
||||||
TEST(IsHandleValid(hdc) == 1);
|
|
||||||
TEST(SelectObject(hdc, GetStockObject(WHITE_PEN)) == NULL);
|
|
||||||
TESTX(GetLastError() == ERROR_INVALID_PARAMETER, "GetLasterror returned 0x%08x\n", (unsigned int)GetLastError());
|
|
||||||
|
|
||||||
/* Delete a display DC */
|
/* Delete a display DC */
|
||||||
SetLastError(0);
|
SetLastError(0);
|
||||||
hdc = CreateDC("DISPLAY", NULL, NULL, NULL);
|
hdc = CreateDC("DISPLAY", NULL, NULL, NULL);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue