Commit in reactos/subsys/win32k/ntuser on MAIN
class.c+2-21.58 -> 1.59
- Fixed the access to an uninitialized variable in IntCreateClass.

reactos/subsys/win32k/ntuser
class.c 1.58 -> 1.59
diff -u -r1.58 -r1.59
--- class.c	20 Jun 2004 00:45:36 -0000	1.58
+++ class.c	21 Jun 2004 20:56:53 -0000	1.59
@@ -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: class.c,v 1.58 2004/06/20 00:45:36 navaraf Exp $
+/* $Id: class.c,v 1.59 2004/06/21 20:56:53 hbirr Exp $
  *
  * COPYRIGHT:        See COPYING in the top level directory
  * PROJECT:          ReactOS kernel
@@ -278,7 +278,7 @@
 	ULONG  objectSize;
 	BOOL Global;
 
-	Global = !(Flags & REGISTERCLASS_SYSTEM) ? ClassObject->style & CS_GLOBALCLASS : TRUE;
+	Global = (Flags & REGISTERCLASS_SYSTEM) || (lpwcx->style & CS_GLOBALCLASS) ? TRUE : FALSE;
 
 	/* Check for double registration of the class. */
 	if (PsGetWin32Process() != NULL)
CVSspam 0.2.8