advapi32: Actually return an error if status indicates an error (Clang).
This commit is contained in:
parent
9285306a5b
commit
7b0cea0d54
@ -622,6 +622,8 @@ static DWORD mac_write_credential(const CREDENTIALW *credential, BOOL preserve_b
|
|||||||
HeapFree(GetProcessHeap(), 0, password);
|
HeapFree(GetProcessHeap(), 0, password);
|
||||||
/* FIXME: set TargetAlias attribute */
|
/* FIXME: set TargetAlias attribute */
|
||||||
CFRelease(keychain_item);
|
CFRelease(keychain_item);
|
||||||
|
if (status != noErr)
|
||||||
|
return ERROR_GEN_FAILURE;
|
||||||
return ERROR_SUCCESS;
|
return ERROR_SUCCESS;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user