Author: tkreuzer
Date: Fri Sep 5 18:46:47 2008
New Revision: 35970
URL:
http://svn.reactos.org/svn/reactos?rev=35970&view=rev
Log:
fix pointer <-> ULONG cast
Modified:
branches/ros-amd64-bringup/reactos/ntoskrnl/config/cmsysini.c
Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/config/cmsysini.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
==============================================================================
--- branches/ros-amd64-bringup/reactos/ntoskrnl/config/cmsysini.c [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/ntoskrnl/config/cmsysini.c [iso-8859-1] Fri Sep 5
18:46:47 2008
@@ -1080,7 +1080,7 @@
PAGED_CODE();
/* Get the hive index, make sure it makes sense */
- i = (ULONG)StartContext;
+ i = PtrToUlong(StartContext);
ASSERT(CmpMachineHiveList[i].Name != NULL);
/* We were started */
@@ -1275,7 +1275,7 @@
0,
NULL,
CmpLoadHiveThread,
- (PVOID)i);
+ UlongToPtr(i));
if (NT_SUCCESS(Status))
{
/* We don't care about the handle -- the thread self-terminates */