From f4597b5540e07a2004466cceec6a0aea23ca1a44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Thu, 20 Dec 2018 03:45:43 +0100 Subject: [PATCH] [NTOS] Addendum to d8cb37bf: return the correct Status from NtAllocateUuids(). --- ntoskrnl/ex/uuid.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ntoskrnl/ex/uuid.c b/ntoskrnl/ex/uuid.c index 375e39f89f9..3c6e4425cb1 100644 --- a/ntoskrnl/ex/uuid.c +++ b/ntoskrnl/ex/uuid.c @@ -398,6 +398,8 @@ NtAllocateUuids(OUT PULARGE_INTEGER Time, RtlCopyMemory(Seed, UuidSeed, SEED_BUFFER_SIZE); + + Status = STATUS_SUCCESS; } _SEH2_EXCEPT(ExSystemExceptionFilter()) { @@ -405,7 +407,7 @@ NtAllocateUuids(OUT PULARGE_INTEGER Time, } _SEH2_END; - return STATUS_SUCCESS; + return Status; }