From: Magnus Olsen Date: Mon, 18 Sep 2006 05:13:17 +0000 (+0000) Subject: revert 24179 it was bad idea. and wrong way todo it on X-Git-Tag: backups/ros-branch-0_3_1-old@26018~28 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=6e100cf43fa17cd16dab60af8b339b23fe2becc9 revert 24179 it was bad idea. and wrong way todo it on See issue #21478 for more details. svn path=/trunk/; revision=24188 --- diff --git a/reactos/dll/win32/gdi32/include/precomp.h b/reactos/dll/win32/gdi32/include/precomp.h index 37765a4f641..aff53ed0616 100644 --- a/reactos/dll/win32/gdi32/include/precomp.h +++ b/reactos/dll/win32/gdi32/include/precomp.h @@ -31,6 +31,4 @@ /* Deprecated NTGDI calls which shouldn't exist */ #include -#include -#include /* EOF */ diff --git a/reactos/dll/win32/gdi32/misc/stubs.c b/reactos/dll/win32/gdi32/misc/stubs.c index 0b23fd0ad18..7a7a5efa08d 100644 --- a/reactos/dll/win32/gdi32/misc/stubs.c +++ b/reactos/dll/win32/gdi32/misc/stubs.c @@ -1838,6 +1838,17 @@ GdiIsPlayMetafileDC(HDC hdc) return 0; } +/* + * @unimplemented + */ +BOOL +STDCALL +GdiReleaseDC(HDC hdc) +{ + UNIMPLEMENTED; + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + return 0; +} /* * @unimplemented diff --git a/reactos/dll/win32/gdi32/objects/dc.c b/reactos/dll/win32/gdi32/objects/dc.c index 328ad29303e..714f0fdd463 100644 --- a/reactos/dll/win32/gdi32/objects/dc.c +++ b/reactos/dll/win32/gdi32/objects/dc.c @@ -458,13 +458,3 @@ GetObjectType( SetLastError(ERROR_INVALID_HANDLE); return Ret; } - -/* - * @implemented - */ -BOOL -STDCALL -GdiReleaseDC(HDC hdc) -{ - return NtUserReleaseDC(NULL,hdc); -}