Author: jimtabor
Date: Sun Feb 15 10:14:18 2015
New Revision: 66280
URL:
http://svn.reactos.org/svn/reactos?rev=66280&view=rev
Log:
[User32]
- Move notify window event to a better location for passing wine msg:test_winevents. See
CORE-7447.
Modified:
trunk/reactos/win32ss/user/user32/windows/defwnd.c
Modified: trunk/reactos/win32ss/user/user32/windows/defwnd.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/window…
==============================================================================
--- trunk/reactos/win32ss/user/user32/windows/defwnd.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/user32/windows/defwnd.c [iso-8859-1] Sun Feb 15 10:14:18
2015
@@ -95,9 +95,6 @@
RtlInitLargeUnicodeString((PLARGE_UNICODE_STRING)&lsString, String, 0);
}
Ret = NtUserDefSetText(hWnd, (String ? &lsString : NULL));
-
- if (Ret)
- IntNotifyWinEvent(EVENT_OBJECT_NAMECHANGE, hWnd, OBJID_WINDOW, CHILDID_SELF, 0);
return Ret;
}
@@ -1402,7 +1399,10 @@
DefSetText(hWnd, (PCWSTR)lParam, TRUE);
if ((GetWindowLongPtrW(hWnd, GWL_STYLE) & WS_CAPTION) == WS_CAPTION)
+ {
UserPaintCaption(hWnd);
+ IntNotifyWinEvent(EVENT_OBJECT_NAMECHANGE, hWnd, OBJID_WINDOW,
CHILDID_SELF, 0);
+ }
Result = 1;
break;
}