From de62b70a2c91b7d78f59df54353ed35df8130b2c Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Fri, 5 Sep 2008 23:46:47 +0000 Subject: [PATCH] fix pointer <-> ULONG cast svn path=/branches/ros-amd64-bringup/; revision=35970 --- reactos/ntoskrnl/config/cmsysini.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/ntoskrnl/config/cmsysini.c b/reactos/ntoskrnl/config/cmsysini.c index f95e6ed2e81..a89f1ca1679 100644 --- a/reactos/ntoskrnl/config/cmsysini.c +++ b/reactos/ntoskrnl/config/cmsysini.c @@ -1080,7 +1080,7 @@ CmpLoadHiveThread(IN PVOID StartContext) 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 @@ CmpInitializeHiveList(IN USHORT Flag) 0, NULL, CmpLoadHiveThread, - (PVOID)i); + UlongToPtr(i)); if (NT_SUCCESS(Status)) { /* We don't care about the handle -- the thread self-terminates */