-/* $Id: window.c,v 1.116 2004/05/08 12:42:45 weiden Exp $
+/* $Id: window.c,v 1.117 2004/05/20 04:10:01 royce Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS user32.dll
ControlsInitialized = ControlsInit(ClassName.Buffer);
}
+ if ( hInstance == NULL )
+ hInstance = GetModuleHandleW(NULL);
+
if (dwExStyle & WS_EX_MDICHILD)
{
if (!IS_ATOM(lpClassName))
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);