Author: sginsberg Date: Mon Sep 28 20:27:06 2009 New Revision: 43211
URL: http://svn.reactos.org/svn/reactos?rev=43211&view=rev Log: Correction to 36917: EPROFILE/KPROFILE.Segment is pointer sized, not a pointer.
Modified: trunk/reactos/include/ndk/extypes.h trunk/reactos/include/ndk/ketypes.h trunk/reactos/ntoskrnl/ex/profile.c
Modified: trunk/reactos/include/ndk/extypes.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/ndk/extypes.h?rev=4... ============================================================================== --- trunk/reactos/include/ndk/extypes.h [iso-8859-1] (original) +++ trunk/reactos/include/ndk/extypes.h [iso-8859-1] Mon Sep 28 20:27:06 2009 @@ -531,7 +531,7 @@ PKPROFILE ProfileObject; PVOID LockedBufferAddress; PMDL Mdl; - PVOID Segment; + ULONG_PTR Segment; KPROFILE_SOURCE ProfileSource; KAFFINITY Affinity; } EPROFILE, *PEPROFILE;
Modified: trunk/reactos/include/ndk/ketypes.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/ndk/ketypes.h?rev=4... ============================================================================== --- trunk/reactos/include/ndk/ketypes.h [iso-8859-1] (original) +++ trunk/reactos/include/ndk/ketypes.h [iso-8859-1] Mon Sep 28 20:27:06 2009 @@ -626,7 +626,7 @@ PVOID RangeLimit; ULONG BucketShift; PVOID Buffer; - PVOID Segment; + ULONG_PTR Segment; KAFFINITY Affinity; KPROFILE_SOURCE Source; BOOLEAN Started;
Modified: trunk/reactos/ntoskrnl/ex/profile.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ex/profile.c?rev=4... ============================================================================== --- trunk/reactos/ntoskrnl/ex/profile.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/ex/profile.c [iso-8859-1] Mon Sep 28 20:27:06 2009 @@ -104,7 +104,7 @@ OBJECT_ATTRIBUTES ObjectAttributes; NTSTATUS Status; ULONG Log2 = 0; - PVOID Segment = NULL; + ULONG_PTR Segment = 0; PAGED_CODE();
/* Easy way out */ @@ -117,7 +117,7 @@ if (BufferSize < sizeof(ULONG)) return STATUS_INVALID_PARAMETER_7;
/* This will become a segmented profile object */ - Segment = RangeBase; + Segment = (ULONG_PTR)RangeBase; RangeBase = 0;
/* Recalculate the bucket size */