Author: jimtabor Date: Sun Dec 26 11:11:27 2010 New Revision: 50141
URL: http://svn.reactos.org/svn/reactos?rev=50141&view=rev Log: [Win32k] - Fixes bug 5792 and Get/PeekMessage tests. I noticed co_IntPostOrSendMessage to co_IntSendMessageNoWait changes when it should have been changed to co_IntSendMessage. Same as co_IntSendMessage to co_IntSendMessageNoWait when it should have not changed.... I'm sorting it out. ATM win test locks up and the system shutdown box is not present only the text message.
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/desktop.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/desktop.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntu... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/desktop.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/desktop.c [iso-8859-1] Sun Dec 26 11:11:27 2010 @@ -708,22 +708,20 @@ PDESKTOP Desktop = IntGetActiveDesktop(); HWND* HwndList;
- static UINT MsgType = 0; - - if (!MsgType) + if (!gpsi->uiShellMsg) {
/* Too bad, this doesn't work.*/ #if 0 UNICODE_STRING Str; RtlInitUnicodeString(&Str, L"SHELLHOOK"); - MsgType = UserRegisterWindowMessage(&Str); + gpsi->uiShellMsg = UserRegisterWindowMessage(&Str); #endif
- MsgType = IntAddAtom(L"SHELLHOOK"); - - DPRINT("MsgType = %x\n", MsgType); - if (!MsgType) + gpsi->uiShellMsg = IntAddAtom(L"SHELLHOOK"); + + DPRINT("MsgType = %x\n", gpsi->uiShellMsg); + if (!gpsi->uiShellMsg) DPRINT1("LastError: %x\n", EngGetLastError()); }
@@ -740,7 +738,7 @@
for (; *cursor; cursor++) { - co_IntSendMessageNoWait(*cursor, MsgType, Message, lParam); + UserPostMessage(*cursor, gpsi->uiShellMsg, Message, lParam); }
ExFreePool(HwndList);