mirror of
https://github.com/reactos/reactos.git
synced 2025-05-21 10:05:35 +00:00
fixed error codes returned when memory allocations failed
svn path=/trunk/; revision=20237
This commit is contained in:
parent
171ede1088
commit
583e7a4282
1 changed files with 5 additions and 4 deletions
|
@ -48,7 +48,7 @@ RtlpSysVolCreateSecurityDescriptor(OUT PSECURITY_DESCRIPTOR *SecurityDescriptor,
|
||||||
TAG('S', 'e', 'S', 'd'));
|
TAG('S', 'e', 'S', 'd'));
|
||||||
if (AbsSD == NULL)
|
if (AbsSD == NULL)
|
||||||
{
|
{
|
||||||
Status = STATUS_INSUFFICIENT_RESOURCES;
|
Status = STATUS_NO_MEMORY;
|
||||||
goto Cleanup;
|
goto Cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ RtlpSysVolCreateSecurityDescriptor(OUT PSECURITY_DESCRIPTOR *SecurityDescriptor,
|
||||||
TAG('S', 'e', 'A', 'c'));
|
TAG('S', 'e', 'A', 'c'));
|
||||||
if (Dacl == NULL)
|
if (Dacl == NULL)
|
||||||
{
|
{
|
||||||
Status = STATUS_INSUFFICIENT_RESOURCES;
|
Status = STATUS_NO_MEMORY;
|
||||||
goto Cleanup;
|
goto Cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -165,7 +165,7 @@ RtlpSysVolCheckOwnerAndSecurity(IN HANDLE DirectoryHandle,
|
||||||
TAG('S', 'e', 'S', 'd'));
|
TAG('S', 'e', 'S', 'd'));
|
||||||
if (RelSD == NULL)
|
if (RelSD == NULL)
|
||||||
{
|
{
|
||||||
Status = STATUS_INSUFFICIENT_RESOURCES;
|
Status = STATUS_NO_MEMORY;
|
||||||
goto Cleanup;
|
goto Cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -300,7 +300,7 @@ RtlpSysVolCheckOwnerAndSecurity(IN HANDLE DirectoryHandle,
|
||||||
TAG('S', 'e', 'S', 'd'));
|
TAG('S', 'e', 'S', 'd'));
|
||||||
if (AbsSD == NULL)
|
if (AbsSD == NULL)
|
||||||
{
|
{
|
||||||
Status = STATUS_INSUFFICIENT_RESOURCES;
|
Status = STATUS_NO_MEMORY;
|
||||||
goto Cleanup;
|
goto Cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -360,6 +360,7 @@ RtlpSysVolCheckOwnerAndSecurity(IN HANDLE DirectoryHandle,
|
||||||
TAG('S', 'e', 'S', 'd'));
|
TAG('S', 'e', 'S', 'd'));
|
||||||
if (NewRelSD == NULL)
|
if (NewRelSD == NULL)
|
||||||
{
|
{
|
||||||
|
Status = STATUS_NO_MEMORY;
|
||||||
goto Cleanup;
|
goto Cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue