Author: sserapion
Date: Wed Sep 24 00:08:25 2008
New Revision: 36447
URL:
http://svn.reactos.org/svn/reactos?rev=36447&view=rev
Log:
Fix 64bit warnings/errors.
Modified:
branches/ros-amd64-bringup/reactos/base/system/smss/client.c
branches/ros-amd64-bringup/reactos/base/system/smss/initss.c
branches/ros-amd64-bringup/reactos/base/system/smss/smapicomp.c
Modified: branches/ros-amd64-bringup/reactos/base/system/smss/client.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/base/…
==============================================================================
--- branches/ros-amd64-bringup/reactos/base/system/smss/client.c [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/base/system/smss/client.c [iso-8859-1] Wed Sep 24
00:08:25 2008
@@ -451,7 +451,7 @@
SmpClientDirectory.CandidateClient->ServerProcess =
(HANDLE) ProcessInfo->ProcessHandle;
SmpClientDirectory.CandidateClient->ServerProcessId =
- (ULONG) ProcessInfo->ClientId.UniqueProcess;
+ (DWORD_PTR) ProcessInfo->ClientId.UniqueProcess;
/*
* Copy the program name
*/
Modified: branches/ros-amd64-bringup/reactos/base/system/smss/initss.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/base/…
==============================================================================
--- branches/ros-amd64-bringup/reactos/base/system/smss/initss.c [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/base/system/smss/initss.c [iso-8859-1] Wed Sep 24
00:08:25 2008
@@ -57,8 +57,8 @@
RtlZeroMemory (& ProcessInfo, sizeof ProcessInfo);
ProcessInfo.Size = sizeof ProcessInfo;
- ProcessInfo.ProcessHandle = (HANDLE) SmSsProcessId;
- ProcessInfo.ClientId.UniqueProcess = (HANDLE) SmSsProcessId;
+ ProcessInfo.ProcessHandle = (HANDLE) UlongToPtr(SmSsProcessId);
+ ProcessInfo.ClientId.UniqueProcess = (HANDLE) UlongToPtr(SmSsProcessId);
DPRINT("SM: %s: ProcessInfo.ProcessHandle=%p\n",
__FUNCTION__,ProcessInfo.ProcessHandle);
Status = SmCreateClient (& ProcessInfo, PgmName);
Modified: branches/ros-amd64-bringup/reactos/base/system/smss/smapicomp.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/base/…
==============================================================================
--- branches/ros-amd64-bringup/reactos/base/system/smss/smapicomp.c [iso-8859-1]
(original)
+++ branches/ros-amd64-bringup/reactos/base/system/smss/smapicomp.c [iso-8859-1] Wed Sep
24 00:08:25 2008
@@ -40,7 +40,7 @@
DPRINT("SM: %s: ClientId.UniqueProcess=%p\n",
__FUNCTION__, Request->Header.ClientId.UniqueProcess);
- Status = SmCompleteClientInitialization ((ULONG)
Request->Header.ClientId.UniqueProcess);
+ Status = SmCompleteClientInitialization
(PtrToUlong(Request->Header.ClientId.UniqueProcess));
if (!NT_SUCCESS(Status))
{
DPRINT1("SM: %s: SmCompleteClientInitialization failed (Status=0x%08lx)\n",