mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +00:00
[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. svn path=/trunk/; revision=50141
This commit is contained in:
parent
866846bf8c
commit
2062df62ca
1 changed files with 6 additions and 8 deletions
|
@ -708,22 +708,20 @@ VOID co_IntShellHookNotify(WPARAM Message, LPARAM lParam)
|
||||||
PDESKTOP Desktop = IntGetActiveDesktop();
|
PDESKTOP Desktop = IntGetActiveDesktop();
|
||||||
HWND* HwndList;
|
HWND* HwndList;
|
||||||
|
|
||||||
static UINT MsgType = 0;
|
if (!gpsi->uiShellMsg)
|
||||||
|
|
||||||
if (!MsgType)
|
|
||||||
{
|
{
|
||||||
|
|
||||||
/* Too bad, this doesn't work.*/
|
/* Too bad, this doesn't work.*/
|
||||||
#if 0
|
#if 0
|
||||||
UNICODE_STRING Str;
|
UNICODE_STRING Str;
|
||||||
RtlInitUnicodeString(&Str, L"SHELLHOOK");
|
RtlInitUnicodeString(&Str, L"SHELLHOOK");
|
||||||
MsgType = UserRegisterWindowMessage(&Str);
|
gpsi->uiShellMsg = UserRegisterWindowMessage(&Str);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
MsgType = IntAddAtom(L"SHELLHOOK");
|
gpsi->uiShellMsg = IntAddAtom(L"SHELLHOOK");
|
||||||
|
|
||||||
DPRINT("MsgType = %x\n", MsgType);
|
DPRINT("MsgType = %x\n", gpsi->uiShellMsg);
|
||||||
if (!MsgType)
|
if (!gpsi->uiShellMsg)
|
||||||
DPRINT1("LastError: %x\n", EngGetLastError());
|
DPRINT1("LastError: %x\n", EngGetLastError());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -740,7 +738,7 @@ VOID co_IntShellHookNotify(WPARAM Message, LPARAM lParam)
|
||||||
|
|
||||||
for (; *cursor; cursor++)
|
for (; *cursor; cursor++)
|
||||||
{
|
{
|
||||||
co_IntSendMessageNoWait(*cursor, MsgType, Message, lParam);
|
UserPostMessage(*cursor, gpsi->uiShellMsg, Message, lParam);
|
||||||
}
|
}
|
||||||
|
|
||||||
ExFreePool(HwndList);
|
ExFreePool(HwndList);
|
||||||
|
|
Loading…
Reference in a new issue