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);
|
||||
/* FIXME: set TargetAlias attribute */
|
||||
CFRelease(keychain_item);
|
||||
if (status != noErr)
|
||||
return ERROR_GEN_FAILURE;
|
||||
return ERROR_SUCCESS;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue