advapi32: Actually return an error if status indicates an error (Clang).

This commit is contained in:
Charles Davis 2012-09-14 18:28:33 -06:00 committed by Alexandre Julliard
parent 9285306a5b
commit 7b0cea0d54

View File

@ -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