Fix compilation without NDEBUG.
Modified: trunk/reactos/subsys/win32k/ntuser/cursoricon.c
Modified: trunk/reactos/subsys/win32k/ntuser/menu.c
Modified: trunk/reactos/subsys/win32k/ntuser/msgqueue.c
Modified: trunk/reactos/subsys/win32k/objects/gdiobj.c

Modified: trunk/reactos/subsys/win32k/ntuser/cursoricon.c
--- trunk/reactos/subsys/win32k/ntuser/cursoricon.c	2005-01-10 21:32:18 UTC (rev 12921)
+++ trunk/reactos/subsys/win32k/ntuser/cursoricon.c	2005-01-10 23:11:45 UTC (rev 12922)
@@ -961,8 +961,6 @@
   WinStaObject = IntGetWinStaObj();
   if (WinStaObject == NULL)
   {
-    DPRINT("Validation of window station handle (0x%X) failed\n",
-      PROCESS_WINDOW_STATION());
     return FALSE;
   }
   

Modified: trunk/reactos/subsys/win32k/ntuser/menu.c
--- trunk/reactos/subsys/win32k/ntuser/menu.c	2005-01-10 21:32:18 UTC (rev 12921)
+++ trunk/reactos/subsys/win32k/ntuser/menu.c	2005-01-10 23:11:45 UTC (rev 12922)
@@ -1353,7 +1353,7 @@
   if (!NT_SUCCESS(Status))
   {
     DPRINT("Validation of window station handle (0x%X) failed\n",
-      PROCESS_WINDOW_STATION());
+      PsGetCurrentProcess()->Win32WindowStation);
     SetLastNtError(Status);
     return (HMENU)0;
   }

Modified: trunk/reactos/subsys/win32k/ntuser/msgqueue.c
--- trunk/reactos/subsys/win32k/ntuser/msgqueue.c	2005-01-10 21:32:18 UTC (rev 12921)
+++ trunk/reactos/subsys/win32k/ntuser/msgqueue.c	2005-01-10 23:11:45 UTC (rev 12922)
@@ -1679,7 +1679,7 @@
     {
       Timer = CONTAINING_RECORD(MessageQueue->TimerListHead.Flink,
                                 TIMER_ENTRY, ListEntry);
-      DPRINT("Checking timer %p wnd %x expiry %I64d\n", Timer, Timer->wnd,
+      DPRINT("Checking timer %p wnd %x expiry %I64d\n", Timer, Timer->Wnd,
              Timer->ExpiryTime.QuadPart);
       EnumEntry = EnumEntry->Flink;
       if ((NULL == WndFilter || Timer->Wnd == WndFilter) &&

Modified: trunk/reactos/subsys/win32k/objects/gdiobj.c
--- trunk/reactos/subsys/win32k/objects/gdiobj.c	2005-01-10 21:32:18 UTC (rev 12921)
+++ trunk/reactos/subsys/win32k/objects/gdiobj.c	2005-01-10 23:11:45 UTC (rev 12922)
@@ -715,7 +715,7 @@
   LONG ProcId;
   ULONG Index = RESERVE_ENTRIES_COUNT;
 
-  DPRINT("Starting CleanupForProcess prochandle %x Pid %d\n", Process, Pid);
+  DPRINT("Starting CleanupForProcess prochandle %x Pid %d\n", Process, Process->UniqueProcessId);
   CurrentProcess = PsGetCurrentProcess();
   if (CurrentProcess != Process)
     {
@@ -761,7 +761,7 @@
       KeDetachProcess();
     }
 
-  DPRINT("Completed cleanup for process %d\n", Pid);
+  DPRINT("Completed cleanup for process %d\n", Process->UniqueProcessId);
 
   return TRUE;
 }