mirror of
https://github.com/reactos/reactos.git
synced 2025-04-20 12:29:56 +00:00
Move PostMessage out of gdi into user.
svn path=/trunk/; revision=34272
This commit is contained in:
parent
71b125ad4f
commit
c84f6bb63c
2 changed files with 5 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -189,8 +189,6 @@ IntSetSysColors(UINT nColors, INT *Elements, COLORREF *Colors)
|
|||
Elements++;
|
||||
Colors++;
|
||||
}
|
||||
UserPostMessage(HWND_BROADCAST, WM_SYSCOLORCHANGE, 0, 0);
|
||||
|
||||
return nColors > 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue