From 583e7a42829e251e62c236917f12bde67fe0b0dd Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Sun, 18 Dec 2005 00:05:08 +0000 Subject: [PATCH] fixed error codes returned when memory allocations failed svn path=/trunk/; revision=20237 --- reactos/lib/rtl/bootdata.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/reactos/lib/rtl/bootdata.c b/reactos/lib/rtl/bootdata.c index 6040d32c66b..18c17fc4479 100644 --- a/reactos/lib/rtl/bootdata.c +++ b/reactos/lib/rtl/bootdata.c @@ -48,7 +48,7 @@ RtlpSysVolCreateSecurityDescriptor(OUT PSECURITY_DESCRIPTOR *SecurityDescriptor, TAG('S', 'e', 'S', 'd')); if (AbsSD == NULL) { - Status = STATUS_INSUFFICIENT_RESOURCES; + Status = STATUS_NO_MEMORY; goto Cleanup; } @@ -66,7 +66,7 @@ RtlpSysVolCreateSecurityDescriptor(OUT PSECURITY_DESCRIPTOR *SecurityDescriptor, TAG('S', 'e', 'A', 'c')); if (Dacl == NULL) { - Status = STATUS_INSUFFICIENT_RESOURCES; + Status = STATUS_NO_MEMORY; goto Cleanup; } @@ -165,7 +165,7 @@ RtlpSysVolCheckOwnerAndSecurity(IN HANDLE DirectoryHandle, TAG('S', 'e', 'S', 'd')); if (RelSD == NULL) { - Status = STATUS_INSUFFICIENT_RESOURCES; + Status = STATUS_NO_MEMORY; goto Cleanup; } @@ -300,7 +300,7 @@ RtlpSysVolCheckOwnerAndSecurity(IN HANDLE DirectoryHandle, TAG('S', 'e', 'S', 'd')); if (AbsSD == NULL) { - Status = STATUS_INSUFFICIENT_RESOURCES; + Status = STATUS_NO_MEMORY; goto Cleanup; } @@ -360,6 +360,7 @@ RtlpSysVolCheckOwnerAndSecurity(IN HANDLE DirectoryHandle, TAG('S', 'e', 'S', 'd')); if (NewRelSD == NULL) { + Status = STATUS_NO_MEMORY; goto Cleanup; } -- 2.17.1