advapi32: Don't crash in ConvertStringSecurityDescriptorToSecurityDescriptorW if LocalAlloc fails.
This commit is contained in:
parent
4d5ce383f5
commit
6c24386e03
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user