[ros-diffs] [jgardou] 47211: [ROSTESTS] - something went wrong with previous commit...

jgardou at svn.reactos.org jgardou at svn.reactos.org
Sat May 15 01:21:05 CEST 2010


Author: jgardou
Date: Sat May 15 01:21:04 2010
New Revision: 47211

URL: http://svn.reactos.org/svn/reactos?rev=47211&view=rev
Log:
[ROSTESTS]
  - something went wrong with previous commit...


Modified:
    trunk/rostests/apitests/w32knapi/ntgdi/NtGdiDeleteObjectApp.c

Modified: trunk/rostests/apitests/w32knapi/ntgdi/NtGdiDeleteObjectApp.c
URL: http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/w32knapi/ntgdi/NtGdiDeleteObjectApp.c?rev=47211&r1=47210&r2=47211&view=diff
==============================================================================
--- trunk/rostests/apitests/w32knapi/ntgdi/NtGdiDeleteObjectApp.c [iso-8859-1] (original)
+++ trunk/rostests/apitests/w32knapi/ntgdi/NtGdiDeleteObjectApp.c [iso-8859-1] Sat May 15 01:21:04 2010
@@ -49,26 +49,6 @@
     /* Make sure */
     TEST(NtUserCallOneParam((DWORD_PTR)hdc, ONEPARAM_ROUTINE_RELEASEDC) == 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 brush */
     SetLastError(0);
     hbrush = CreateSolidBrush(0x123456);




More information about the Ros-diffs mailing list