Commit in reactos/subsys/win32k/ntuser on MAIN
misc.c+3-41.86 -> 1.87
Windows doesn't check uiParam for SPI_GETNONCLIENTMETRICS

reactos/subsys/win32k/ntuser
misc.c 1.86 -> 1.87
diff -u -r1.86 -r1.87
--- misc.c	28 Sep 2004 15:02:30 -0000	1.86
+++ misc.c	19 Oct 2004 08:25:25 -0000	1.87
@@ -1,4 +1,4 @@
-/* $Id: misc.c,v 1.86 2004/09/28 15:02:30 weiden Exp $
+/* $Id: misc.c,v 1.87 2004/10/19 08:25:25 gvg Exp $
  *
  * COPYRIGHT:        See COPYING in the top level directory
  * PROJECT:          ReactOS kernel
@@ -671,7 +671,7 @@
     pMetrics.iSmCaptionHeight = NtUserGetSystemMetrics(SM_CYSMSIZE);
     pMetrics.iMenuWidth = NtUserGetSystemMetrics(SM_CXMENUSIZE);
     pMetrics.iMenuHeight = NtUserGetSystemMetrics(SM_CYMENUSIZE);
-    pMetrics.cbSize = sizeof(LPNONCLIENTMETRICSW);
+    pMetrics.cbSize = sizeof(NONCLIENTMETRICSW);
     
     bInitialized = TRUE;
   }
@@ -1006,8 +1006,7 @@
         SetLastNtError(Status);
         return FALSE;
       }
-      if((metrics.cbSize != sizeof(NONCLIENTMETRICSW)) ||
-         (uiParam != sizeof(NONCLIENTMETRICSW)))
+      if(metrics.cbSize != sizeof(NONCLIENTMETRICSW))
       {
         SetLastWin32Error(ERROR_INVALID_PARAMETER);
         return FALSE;
CVSspam 0.2.8