Author: jimtabor
Date: Thu Jul 3 01:29:30 2008
New Revision: 34272
URL:
http://svn.reactos.org/svn/reactos?rev=34272&view=rev
Log:
Move PostMessage out of gdi into user.
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/ntstubs.c
trunk/reactos/subsystems/win32/win32k/objects/stockobj.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/ntstubs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/ntstubs.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/ntstubs.c [iso-8859-1] Thu Jul 3
01:29:30 2008
@@ -540,6 +540,7 @@
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 @@
SetLastNtError(Status);
Ret = FALSE;
}
+ if (Ret)
+ {
+ UserPostMessage(HWND_BROADCAST, WM_SYSCOLORCHANGE, 0, 0);
+ }
UserLeave();
return Ret;
}
Modified: trunk/reactos/subsystems/win32/win32k/objects/stockobj.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/stockobj.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/stockobj.c [iso-8859-1] Thu Jul 3
01:29:30 2008
@@ -189,8 +189,6 @@
Elements++;
Colors++;
}
- UserPostMessage(HWND_BROADCAST, WM_SYSCOLORCHANGE, 0, 0);
-
return nColors > 0;
}