From 7e2503da069c42e251210c7cd1aaa41d2d68ce58 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Fri, 5 Sep 2008 23:53:36 +0000 Subject: [PATCH] more pointer <-> ULONG cast fixes svn path=/branches/ros-amd64-bringup/; revision=35971 --- reactos/ntoskrnl/ex/work.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/ntoskrnl/ex/work.c b/reactos/ntoskrnl/ex/work.c index 7d1e8146663..d7bdae23583 100644 --- a/reactos/ntoskrnl/ex/work.c +++ b/reactos/ntoskrnl/ex/work.c @@ -147,7 +147,7 @@ ProcessLoop: TimeoutPointer); /* Check if we timed out and quit this loop in that case */ - if ((NTSTATUS)QueueEntry == STATUS_TIMEOUT) break; + if ((NTSTATUS)(ULONG_PTR)QueueEntry == STATUS_TIMEOUT) break; /* Increment Processed Work Items */ InterlockedIncrement((PLONG)&WorkQueue->WorkItemsProcessed); @@ -271,7 +271,7 @@ ExpCreateWorkerThread(WORK_QUEUE_TYPE WorkQueueType, NULL, NULL, ExpWorkerThreadEntryPoint, - (PVOID)Context); + UlongToPtr(Context)); /* If the thread is dynamic */ if (Dynamic)