Commit 7b0cea0d authored by Charles Davis's avatar Charles Davis Committed by Alexandre Julliard

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

parent 9285306a
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment