Author: sginsberg
Date: Sat Sep 19 14:25:52 2015
New Revision: 69290
URL:
http://svn.reactos.org/svn/reactos?rev=69290&view=rev
Log:
[WIN32SS} So ehm DBG is always defined to 0 or 1 (unless one messes around with it, like
in Uniata...) so consistently check with #if and not #ifdef or else debug code gets in the
free build.
Modified:
trunk/reactos/win32ss/gdi/ntgdi/dc.h
trunk/reactos/win32ss/gdi/ntgdi/dclife.c
Modified: trunk/reactos/win32ss/gdi/ntgdi/dc.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/ntgdi/dc.h?rev…
==============================================================================
--- trunk/reactos/win32ss/gdi/ntgdi/dc.h [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/ntgdi/dc.h [iso-8859-1] Sat Sep 19 14:25:52 2015
@@ -34,7 +34,7 @@
DC_IN_CLONEPDEV = 0x1000,
DC_REDIRECTION = 0x2000,
DC_SHAREACCESS = 0x4000,
-#ifdef DBG
+#if DBG
DC_PREPARED = 0x8000
#endif
};
Modified: trunk/reactos/win32ss/gdi/ntgdi/dclife.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/ntgdi/dclife.c…
==============================================================================
--- trunk/reactos/win32ss/gdi/ntgdi/dclife.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/ntgdi/dclife.c [iso-8859-1] Sat Sep 19 14:25:52 2015
@@ -556,7 +556,7 @@
prcFirst->bottom) ;
}
-#ifdef DBG
+#if DBG
pdcFirst->fs |= DC_PREPARED;
#endif
@@ -586,7 +586,7 @@
prcSecond->bottom) ;
}
-#ifdef DBG
+#if DBG
pdcSecond->fs |= DC_PREPARED;
#endif
}
@@ -601,7 +601,7 @@
MouseSafetyOnDrawEnd(pdc1->ppdev);
EngReleaseSemaphore(pdc1->ppdev->hsemDevLock);
}
-#ifdef DBG
+#if DBG
pdc1->fs &= ~DC_PREPARED;
#endif
@@ -612,7 +612,7 @@
MouseSafetyOnDrawEnd(pdc2->ppdev);
EngReleaseSemaphore(pdc2->ppdev->hsemDevLock);
}
-#ifdef DBG
+#if DBG
pdc2->fs &= ~DC_PREPARED;
#endif
}