mirror of
https://github.com/reactos/reactos.git
synced 2025-04-22 05:00:27 +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,
|
ProbeForRead(lpaRgbValues,
|
||||||
sizeof(INT),
|
sizeof(INT),
|
||||||
1);
|
1);
|
||||||
|
// Developers: We are thread locked and calling gdi.
|
||||||
Ret = IntSetSysColors(cElements, (INT*)lpaElements, (COLORREF*)lpaRgbValues);
|
Ret = IntSetSysColors(cElements, (INT*)lpaElements, (COLORREF*)lpaRgbValues);
|
||||||
}
|
}
|
||||||
_SEH_HANDLE
|
_SEH_HANDLE
|
||||||
|
@ -552,6 +553,10 @@ NtUserSetSysColors(
|
||||||
SetLastNtError(Status);
|
SetLastNtError(Status);
|
||||||
Ret = FALSE;
|
Ret = FALSE;
|
||||||
}
|
}
|
||||||
|
if (Ret)
|
||||||
|
{
|
||||||
|
UserPostMessage(HWND_BROADCAST, WM_SYSCOLORCHANGE, 0, 0);
|
||||||
|
}
|
||||||
UserLeave();
|
UserLeave();
|
||||||
return Ret;
|
return Ret;
|
||||||
}
|
}
|
||||||
|
|
|
@ -189,8 +189,6 @@ IntSetSysColors(UINT nColors, INT *Elements, COLORREF *Colors)
|
||||||
Elements++;
|
Elements++;
|
||||||
Colors++;
|
Colors++;
|
||||||
}
|
}
|
||||||
UserPostMessage(HWND_BROADCAST, WM_SYSCOLORCHANGE, 0, 0);
|
|
||||||
|
|
||||||
return nColors > 0;
|
return nColors > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue