https://git.reactos.org/?p=reactos.git;a=commitdiff;h=9ab5d3afb2007337b0a298635729ccd82b3efe18

commit 9ab5d3afb2007337b0a298635729ccd82b3efe18
Author:     Oleg Dubinskiy <oleg.dubinskij2...@yandex.ua>
AuthorDate: Fri Feb 18 23:00:57 2022 +0200
Commit:     GitHub <nore...@github.com>
CommitDate: Fri Feb 18 22:00:57 2022 +0100

    [WIN32SS][NTGDI] Remove useless assert (#4370) CORE-17561
    
    
    Remove useless ASSERT(FALSE); in IntGdiCreateDisplayDC, because it actually 
does not check anything useful. It only asserts each time when the function is 
called from DxEngCreateMemoryDC by MS DirectDraw stack (ddraw.dll & dxg.sys).
    UNIMPLEMENTED debug print is enough a lot to see that this function is not 
implemented properly.
    CORE-17561
---
 win32ss/gdi/ntgdi/dclife.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/win32ss/gdi/ntgdi/dclife.c b/win32ss/gdi/ntgdi/dclife.c
index 4671c16d4a7..d94f69b9661 100644
--- a/win32ss/gdi/ntgdi/dclife.c
+++ b/win32ss/gdi/ntgdi/dclife.c
@@ -1064,7 +1064,6 @@ IntGdiCreateDisplayDC(HDEV hDev, ULONG DcType, BOOL 
EmptyDC)
 {
     HDC hDC;
     UNIMPLEMENTED;
-    ASSERT(FALSE);
 
     if (DcType == DC_TYPE_MEMORY)
         hDC = NtGdiCreateCompatibleDC(NULL); // OH~ Yuck! I think I taste 
vomit in my mouth!

Reply via email to