Author: sginsberg
Date: Thu Oct 23 12:05:40 2008
New Revision: 36912
URL:
http://svn.reactos.org/svn/reactos?rev=36912&view=rev
Log:
- More 64-bit fixes
Modified:
trunk/reactos/subsystems/win32/win32k/include/hook.h
trunk/reactos/subsystems/win32/win32k/ntuser/event.c
trunk/reactos/subsystems/win32/win32k/ntuser/msgqueue.c
Modified: trunk/reactos/subsystems/win32/win32k/include/hook.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/in…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/include/hook.h [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/include/hook.h [iso-8859-1] Thu Oct 23 12:05:40
2008
@@ -48,7 +48,7 @@
} EVENTTABLE, *PEVENTTABLE;
LRESULT FASTCALL co_HOOK_CallHooks(INT HookId, INT Code, WPARAM wParam, LPARAM lParam);
-LRESULT FASTCALL co_EVENT_CallEvents(DWORD, HWND, LONG, LONG);
+LRESULT FASTCALL co_EVENT_CallEvents(DWORD, HWND, UINT_PTR, LONG_PTR);
VOID FASTCALL HOOK_DestroyThreadHooks(PETHREAD Thread);
PHOOK FASTCALL IntGetHookObject(HHOOK);
PHOOK FASTCALL IntGetNextHook(PHOOK Hook);
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/event.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/event.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/event.c [iso-8859-1] Thu Oct 23 12:05:40
2008
@@ -141,8 +141,8 @@
FASTCALL
co_EVENT_CallEvents( DWORD event,
HWND hwnd,
- LONG idObject,
- LONG idChild)
+ UINT_PTR idObject,
+ LONG_PTR idChild)
{
PEVENTHOOK pEH;
LRESULT Result;
@@ -185,14 +185,14 @@
if ((pEH->Thread != PsGetCurrentThread()) && (pEH->Thread !=
NULL))
{ // if all process || all thread || other thread same process
if (!(pEH->idProcess) || !(pEH->idThread) ||
- ((DWORD)(NtCurrentTeb()->ClientId).UniqueProcess ==
pEH->idProcess))
+ (NtCurrentTeb()->ClientId.UniqueProcess == (PVOID)pEH->idProcess))
{
Result = IntCallLowLevelEvent(pEH, Event, Window->hSelf, idObject,
idChild);
}
}// if ^skip own thread && ((Pid && CPid == Pid && ^skip
own process) || all process)
else if ( !(pEH->Flags & WINEVENT_SKIPOWNTHREAD) &&
( ((pEH->idProcess &&
- (DWORD)(NtCurrentTeb()->ClientId).UniqueProcess == pEH->idProcess)
&&
+ NtCurrentTeb()->ClientId.UniqueProcess ==
(PVOID)pEH->idProcess) &&
!(pEH->Flags & WINEVENT_SKIPOWNPROCESS)) ||
!pEH->idProcess ) )
{
@@ -201,7 +201,7 @@
Window->hSelf,
idObject,
idChild,
- (DWORD)(NtCurrentTeb()->ClientId).UniqueThread,
+ PtrToUint(NtCurrentTeb()->ClientId.UniqueThread),
(DWORD)EngGetTickCount(),
pEH->Proc);
}
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/msgqueue.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/msgqueue.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/msgqueue.c [iso-8859-1] Thu Oct 23
12:05:40 2008
@@ -942,8 +942,8 @@
{
Result = co_EVENT_CallEvents( Message->Msg.message,
Message->Msg.hwnd,
- (LONG) Message->Msg.wParam,
- (LONG) Message->Msg.lParam);
+ Message->Msg.wParam,
+ Message->Msg.lParam);
}
else
{