Commit in reactos on MAIN
lib/user32/windows/window.c+1-71.118 -> 1.119
subsys/win32k/ntuser/class.c+2-21.55 -> 1.56
+3-9
2 modified files
ignore the hInstance field while searching classes if it's NULL

reactos/lib/user32/windows
window.c 1.118 -> 1.119
diff -u -r1.118 -r1.119
--- window.c	21 May 2004 10:09:31 -0000	1.118
+++ window.c	23 May 2004 14:04:58 -0000	1.119
@@ -1,4 +1,4 @@
-/* $Id: window.c,v 1.118 2004/05/21 10:09:31 weiden Exp $
+/* $Id: window.c,v 1.119 2004/05/23 14:04:58 weiden Exp $
  *
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS user32.dll
@@ -193,9 +193,6 @@
       ControlsInitialized = ControlsInit(ClassName.Buffer);
     }
 
-  if ( hInstance == NULL )
-    hInstance = GetModuleHandleW(NULL);
-
   if (dwExStyle & WS_EX_MDICHILD)
   {
      if (!IS_ATOM(lpClassName))
@@ -281,9 +278,6 @@
       ControlsInitialized = ControlsInit(lpClassName);
     }
 
-  if ( hInstance == NULL )
-    hInstance = GetModuleHandleW(NULL);
-
   if (dwExStyle & WS_EX_MDICHILD)
      return CreateMDIWindowW(lpClassName, lpWindowName, dwStyle, x, y,
         nWidth, nHeight, hWndParent, hInstance, (LPARAM)lpParam);

reactos/subsys/win32k/ntuser
class.c 1.55 -> 1.56
diff -u -r1.55 -r1.56
--- class.c	17 May 2004 16:38:58 -0000	1.55
+++ class.c	23 May 2004 14:04:58 -0000	1.56
@@ -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.55 2004/05/17 16:38:58 navaraf Exp $
+/* $Id: class.c,v 1.56 2004/05/23 14:04:58 weiden Exp $
  *
  * COPYRIGHT:        See COPYING in the top level directory
  * PROJECT:          ReactOS kernel
@@ -63,7 +63,7 @@
    {
       Current = CONTAINING_RECORD(CurrentEntry, WNDCLASS_OBJECT, ListEntry);
       
-      if (Current->Atom == Atom && Current->hInstance == hInstance)
+      if (Current->Atom == Atom && (hInstance == NULL || Current->hInstance == hInstance))
       {
          *Class = Current;
          ObmReferenceObject(Current);
CVSspam 0.2.8