[NTOS:CM] Probe for write in NtLockProductActivationKeys.
authorThomas Faber <thomas.faber@reactos.org>
Sun, 29 Dec 2019 09:33:38 +0000 (10:33 +0100)
committerThomas Faber <thomas.faber@reactos.org>
Sun, 29 Dec 2019 09:41:47 +0000 (10:41 +0100)
This doesn't technically make a difference, but it's good practice.

ntoskrnl/config/ntapi.c

index bfe9ffe..b672a9b 100644 (file)
@@ -1395,7 +1395,7 @@ NtLockProductActivationKeys(IN PULONG pPrivateVer,
             /* For user mode, probe it */
             if (PreviousMode != KernelMode)
             {
-                ProbeForRead(pPrivateVer, sizeof(ULONG), sizeof(ULONG));
+                ProbeForWriteUlong(pPrivateVer);
             }
 
             /* Return the expected version */
@@ -1408,7 +1408,7 @@ NtLockProductActivationKeys(IN PULONG pPrivateVer,
             /* For user mode, probe it */
             if (PreviousMode != KernelMode)
             {
-                ProbeForRead(pSafeMode, sizeof(ULONG), sizeof(ULONG));
+                ProbeForWriteUlong(pSafeMode);
             }
 
             /* Return the safe boot mode state */