Author: jimtabor
Date: Tue Dec 28 10:38:38 2010
New Revision: 50185
URL:
http://svn.reactos.org/svn/reactos?rev=50185&view=rev
Log:
[Win32k]
- Fix all the user32 wine win test_CreateWindow tests.
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/window.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/window.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/window.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/window.c [iso-8859-1] Tue Dec 28 10:38:38
2010
@@ -437,8 +437,9 @@
TIMER_RemoveWindowTimers(Window->head.h);
#endif
- if (!(Window->style & WS_CHILD) && Window->IDMenu
- && (Menu = UserGetMenuObject((HMENU)Window->IDMenu)))
+ if ( ((Window->style & (WS_CHILD|WS_POPUP)) != WS_CHILD) &&
+ Window->IDMenu &&
+ (Menu = UserGetMenuObject((HMENU)Window->IDMenu)))
{
IntDestroyMenuObject(Menu, TRUE, TRUE);
Window->IDMenu = 0;