Commit in reactos/subsys/win32k/ntuser on win32k_user_rewrite
guicheck.c+3-31.19.12.1 -> 1.19.12.2
fixed graphics check

reactos/subsys/win32k/ntuser
guicheck.c 1.19.12.1 -> 1.19.12.2
diff -u -r1.19.12.1 -r1.19.12.2
--- guicheck.c	15 Jul 2004 20:07:17 -0000	1.19.12.1
+++ guicheck.c	22 Jul 2004 13:25:58 -0000	1.19.12.2
@@ -16,7 +16,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-/* $Id: guicheck.c,v 1.19.12.1 2004/07/15 20:07:17 weiden Exp $
+/* $Id: guicheck.c,v 1.19.12.2 2004/07/22 13:25:58 weiden Exp $
  *
  * COPYRIGHT:        See COPYING in the top level directory
  * PROJECT:          ReactOS kernel
@@ -40,7 +40,7 @@
 
 /* GLOBALS *******************************************************************/
 
-static ULONG NrGuiApplicationsRunning = 0;
+static LONG NrGuiApplicationsRunning = 0;
 
 /* FUNCTIONS *****************************************************************/
 
@@ -65,7 +65,7 @@
 RemoveGuiApp(PW32PROCESS W32Data)
 {
   W32Data->Flags &= ~W32PF_CREATEDWINORDC;
-  if (InterlockedDecrement(&NrGuiApplicationsRunning))
+  if (InterlockedDecrement(&NrGuiApplicationsRunning) == 0)
     {
       IntEndDesktopGraphics();
     }
CVSspam 0.2.8