https://git.reactos.org/?p=reactos.git;a=commitdiff;h=bc5acd81020e4efe527ab…
commit bc5acd81020e4efe527abc490e6927d6c83b8cee
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Thu Dec 20 03:46:42 2018 +0100
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Thu Dec 20 03:47:46 2018 +0100
[NTOS] Minor formatting + don't hardcode sizeof(UCHAR) value.
---
ntoskrnl/ex/uuid.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/ntoskrnl/ex/uuid.c b/ntoskrnl/ex/uuid.c
index 3c6e4425cb..cae12d7bd1 100644
--- a/ntoskrnl/ex/uuid.c
+++ b/ntoskrnl/ex/uuid.c
@@ -3,9 +3,8 @@
* PROJECT: ReactOS kernel
* FILE: ntoskrnl/ex/uuid.c
* PURPOSE: UUID generator
- *
* PROGRAMMERS: Eric Kohl
- Thomas Weidenmueller
+ * Thomas Weidenmueller
*/
/* INCLUDES *****************************************************************/
@@ -452,7 +451,7 @@ NtSetUuidSeed(IN PUCHAR Seed)
}
/* Check for buffer validity and then copy it to our seed */
- ProbeForRead(Seed, SEED_BUFFER_SIZE, 1);
+ ProbeForRead(Seed, SEED_BUFFER_SIZE, sizeof(UCHAR));
RtlCopyMemory(UuidSeed, Seed, SEED_BUFFER_SIZE);
Status = STATUS_SUCCESS;