[ros-diffs] [sginsberg] 36917: - Fix EPROFILE/KPROFILE.Segment member -- it is a pointer

sginsberg at svn.reactos.org sginsberg at svn.reactos.org
Thu Oct 23 21:15:45 CEST 2008


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=36917&r1=36916&r2=36917&view=diff
==============================================================================
--- 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=36917&r1=36916&r2=36917&view=diff
==============================================================================
--- 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=36917&r1=36916&r2=36917&view=diff
==============================================================================
--- 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 */



More information about the Ros-diffs mailing list