- Move notify window event to a better location for passing wine msg:test_winevents. See CORE-7447.

svn path=/trunk/; revision=66280
This commit is contained in:
James Tabor 2015-02-15 10:14:18 +00:00
parent c1e830e073
commit af36a2a4df

View file

@ -96,9 +96,6 @@ DefSetText(HWND hWnd, PCWSTR String, BOOL Ansi)
}
Ret = NtUserDefSetText(hWnd, (String ? &lsString : NULL));
if (Ret)
IntNotifyWinEvent(EVENT_OBJECT_NAMECHANGE, hWnd, OBJID_WINDOW, CHILDID_SELF, 0);
return Ret;
}
@ -1402,7 +1399,10 @@ RealDefWindowProcA(HWND hWnd,
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;
}