mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
Move PostMessage out of gdi into user.
svn path=/trunk/; revision=34272
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user