Author: jimtabor
Date: Fri Aug 17 04:40:57 2007
New Revision: 28377
URL:
http://svn.reactos.org/svn/reactos?rev=28377&view=rev
Log:
Use Gdi32 DeleteDC now. Soon tests will start with most Get functions using dcattr.
Modified:
trunk/reactos/dll/win32/gdi32/gdi32.def
trunk/reactos/dll/win32/gdi32/objects/dc.c
Modified: trunk/reactos/dll/win32/gdi32/gdi32.def
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/gdi32.def?…
==============================================================================
--- trunk/reactos/dll/win32/gdi32/gdi32.def (original)
+++ trunk/reactos/dll/win32/gdi32/gdi32.def Fri Aug 17 04:40:57 2007
@@ -91,7 +91,7 @@
CreateSolidBrush@4
DPtoLP@12
DeleteColorSpace@4
-DeleteDC@4=NtGdiDeleteObjectApp@4
+DeleteDC@4
DeleteEnhMetaFile@4
DeleteMetaFile@4
DeleteObject@4
Modified: trunk/reactos/dll/win32/gdi32/objects/dc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/objects/dc…
==============================================================================
--- trunk/reactos/dll/win32/gdi32/objects/dc.c (original)
+++ trunk/reactos/dll/win32/gdi32/objects/dc.c Fri Aug 17 04:40:57 2007
@@ -240,15 +240,14 @@
*/
BOOL
STDCALL
-NEWDeleteDC(HDC hDC)
+DeleteDC(HDC hDC)
{
BOOL Ret = TRUE;
+#if 0
PDC_ATTR Dc_Attr;
PLDC pLDC;
- Ret = GdiGetHandleUserData((HGDIOBJ) hDC, (PVOID) &Dc_Attr);
-
- if ( !Ret ) return FALSE;
+ if (!GdiGetHandleUserData((HGDIOBJ) hDC, (PVOID) &Dc_Attr)) return FALSE;
if ( Dc_Attr )
{
@@ -260,7 +259,7 @@
LocalFree( pLDC );
}
}
-
+#endif
Ret = NtGdiDeleteObjectApp(hDC);
return Ret;