Author: sginsberg
Date: Thu Oct 23 14:15:44 2008
New Revision: 36917
URL:
http://svn.reactos.org/svn/reactos?rev=36917&view=rev
Log:
- Fix EPROFILE/KPROFILE.Segment member -- it is 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=…
==============================================================================
--- trunk/reactos/include/ndk/extypes.h [iso-8859-1] (original)
+++ trunk/reactos/include/ndk/extypes.h [iso-8859-1] Thu Oct 23 14:15:44 2008
@@ -532,7 +532,7 @@
PKPROFILE ProfileObject;
PVOID LockedBufferAddress;
PMDL Mdl;
- ULONG Segment;
+ PVOID 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=…
==============================================================================
--- trunk/reactos/include/ndk/ketypes.h [iso-8859-1] (original)
+++ trunk/reactos/include/ndk/ketypes.h [iso-8859-1] Thu Oct 23 14:15:44 2008
@@ -598,7 +598,7 @@
PVOID RangeLimit;
ULONG BucketShift;
PVOID Buffer;
- ULONG Segment;
+ PVOID 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=…
==============================================================================
--- trunk/reactos/ntoskrnl/ex/profile.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ex/profile.c [iso-8859-1] Thu Oct 23 14:15:44 2008
@@ -103,7 +103,8 @@
KPROCESSOR_MODE PreviousMode = ExGetPreviousMode();
OBJECT_ATTRIBUTES ObjectAttributes;
NTSTATUS Status = STATUS_SUCCESS;
- ULONG Segment = 0, Log2 = 0;
+ ULONG Log2 = 0;
+ PVOID Segment = NULL;
PAGED_CODE();
/* Easy way out */
@@ -116,7 +117,7 @@
if (BufferSize < sizeof(ULONG)) return STATUS_INVALID_PARAMETER_7;
/* This will become a segmented profile object */
- Segment = (ULONG)RangeBase;
+ Segment = RangeBase;
RangeBase = 0;
/* Recalculate the bucket size */