[NTOS] Minor formatting + don't hardcode sizeof(UCHAR) value.

This commit is contained in:
Hermès Bélusca-Maïto 2018-12-20 03:46:42 +01:00
parent f4597b5540
commit bc5acd8102
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -3,9 +3,8 @@
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
* FILE: ntoskrnl/ex/uuid.c * FILE: ntoskrnl/ex/uuid.c
* PURPOSE: UUID generator * PURPOSE: UUID generator
*
* PROGRAMMERS: Eric Kohl * PROGRAMMERS: Eric Kohl
Thomas Weidenmueller * Thomas Weidenmueller
*/ */
/* INCLUDES *****************************************************************/ /* INCLUDES *****************************************************************/
@ -452,7 +451,7 @@ NtSetUuidSeed(IN PUCHAR Seed)
} }
/* Check for buffer validity and then copy it to our 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); RtlCopyMemory(UuidSeed, Seed, SEED_BUFFER_SIZE);
Status = STATUS_SUCCESS; Status = STATUS_SUCCESS;