Move PostMessage out of gdi into user.

svn path=/trunk/; revision=34272
This commit is contained in:
James Tabor 2008-07-03 06:29:30 +00:00
parent 71b125ad4f
commit c84f6bb63c
2 changed files with 5 additions and 2 deletions

View file

@ -540,6 +540,7 @@ NtUserSetSysColors(
ProbeForRead(lpaRgbValues,
sizeof(INT),
1);
// Developers: We are thread locked and calling gdi.
Ret = IntSetSysColors(cElements, (INT*)lpaElements, (COLORREF*)lpaRgbValues);
}
_SEH_HANDLE
@ -552,6 +553,10 @@ NtUserSetSysColors(
SetLastNtError(Status);
Ret = FALSE;
}
if (Ret)
{
UserPostMessage(HWND_BROADCAST, WM_SYSCOLORCHANGE, 0, 0);
}
UserLeave();
return Ret;
}

View file

@ -189,8 +189,6 @@ IntSetSysColors(UINT nColors, INT *Elements, COLORREF *Colors)
Elements++;
Colors++;
}
UserPostMessage(HWND_BROADCAST, WM_SYSCOLORCHANGE, 0, 0);
return nColors > 0;
}