https://git.reactos.org/?p=reactos.git;a=commitdiff;h=f4597b5540e07a2004466cceec6a0aea23ca1a44

commit f4597b5540e07a2004466cceec6a0aea23ca1a44
Author:     Hermès Bélusca-Maïto <[email protected]>
AuthorDate: Thu Dec 20 03:45:43 2018 +0100
Commit:     Hermès Bélusca-Maïto <[email protected]>
CommitDate: Thu Dec 20 03:47:45 2018 +0100

    [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 375e39f89f..3c6e4425cb 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;
 }
 
 

Reply via email to