advapi32: Don't crash in ConvertStringSecurityDescriptorToSecurityDescriptorW if LocalAlloc fails.

This commit is contained in:
Rob Shearman 2007-07-18 18:11:37 +01:00 committed by Alexandre Julliard
parent 4d5ce383f5
commit 6c24386e03
1 changed files with 1 additions and 0 deletions

View File

@ -3451,6 +3451,7 @@ BOOL WINAPI ConvertStringSecurityDescriptorToSecurityDescriptorW(
psd = *SecurityDescriptor = (SECURITY_DESCRIPTOR*) LocalAlloc(
GMEM_ZEROINIT, cBytes);
if (!psd) goto lend;
psd->Revision = SID_REVISION;
psd->Control |= SE_SELF_RELATIVE;