Correction to 36917: EPROFILE/KPROFILE.Segment is pointer sized, not a pointer.
authorStefan Ginsberg <stefanginsberg@gmail.com>
Mon, 28 Sep 2009 18:27:06 +0000 (18:27 +0000)
committerStefan Ginsberg <stefanginsberg@gmail.com>
Mon, 28 Sep 2009 18:27:06 +0000 (18:27 +0000)
svn path=/trunk/; revision=43211

reactos/include/ndk/extypes.h
reactos/include/ndk/ketypes.h
reactos/ntoskrnl/ex/profile.c

index bd0a855..c44d6c9 100644 (file)
@@ -531,7 +531,7 @@ typedef struct _EPROFILE
     PKPROFILE ProfileObject;
     PVOID LockedBufferAddress;
     PMDL Mdl;
     PKPROFILE ProfileObject;
     PVOID LockedBufferAddress;
     PMDL Mdl;
-    PVOID Segment;
+    ULONG_PTR Segment;
     KPROFILE_SOURCE ProfileSource;
     KAFFINITY Affinity;
 } EPROFILE, *PEPROFILE;
     KPROFILE_SOURCE ProfileSource;
     KAFFINITY Affinity;
 } EPROFILE, *PEPROFILE;
index 22b6204..d4ae1c5 100644 (file)
@@ -626,7 +626,7 @@ typedef struct _KPROFILE
     PVOID RangeLimit;
     ULONG BucketShift;
     PVOID Buffer;
     PVOID RangeLimit;
     ULONG BucketShift;
     PVOID Buffer;
-    PVOID Segment;
+    ULONG_PTR Segment;
     KAFFINITY Affinity;
     KPROFILE_SOURCE Source;
     BOOLEAN Started;
     KAFFINITY Affinity;
     KPROFILE_SOURCE Source;
     BOOLEAN Started;
index f5c1a2d..f931edf 100644 (file)
@@ -104,7 +104,7 @@ NtCreateProfile(OUT PHANDLE ProfileHandle,
     OBJECT_ATTRIBUTES ObjectAttributes;
     NTSTATUS Status;
     ULONG Log2 = 0;
     OBJECT_ATTRIBUTES ObjectAttributes;
     NTSTATUS Status;
     ULONG Log2 = 0;
-    PVOID Segment = NULL;
+    ULONG_PTR Segment = 0;
     PAGED_CODE();
 
     /* Easy way out */
     PAGED_CODE();
 
     /* Easy way out */
@@ -117,7 +117,7 @@ NtCreateProfile(OUT PHANDLE ProfileHandle,
         if (BufferSize < sizeof(ULONG)) return STATUS_INVALID_PARAMETER_7;
 
         /* This will become a segmented profile object */
         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 */
         RangeBase = 0;
 
         /* Recalculate the bucket size */