projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91cc1c3
)
[NTOS:CM] Probe for write in NtLockProductActivationKeys.
author
Thomas Faber
<thomas.faber@reactos.org>
Sun, 29 Dec 2019 09:33:38 +0000
(10:33 +0100)
committer
Thomas 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
patch
|
blob
|
history
diff --git
a/ntoskrnl/config/ntapi.c
b/ntoskrnl/config/ntapi.c
index
bfe9ffe
..
b672a9b
100644
(file)
--- a/
ntoskrnl/config/ntapi.c
+++ b/
ntoskrnl/config/ntapi.c
@@
-1395,7
+1395,7
@@
NtLockProductActivationKeys(IN PULONG pPrivateVer,
/* For user mode, probe it */
if (PreviousMode != KernelMode)
{
- ProbeFor
Read(pPrivateVer, sizeof(ULONG), sizeof(ULONG)
);
+ ProbeFor
WriteUlong(pPrivateVer
);
}
/* Return the expected version */
@@
-1408,7
+1408,7
@@
NtLockProductActivationKeys(IN PULONG pPrivateVer,
/* For user mode, probe it */
if (PreviousMode != KernelMode)
{
- ProbeFor
Read(pSafeMode, sizeof(ULONG), sizeof(ULONG)
);
+ ProbeFor
WriteUlong(pSafeMode
);
}
/* Return the safe boot mode state */