[PATCH 2/2] advapi32: Actually return an error if status indicates an error (Clang).
Charles Davis
cdavis5x at gmail.com
Fri Sep 14 19:28:33 CDT 2012
---
dlls/advapi32/cred.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dlls/advapi32/cred.c b/dlls/advapi32/cred.c
index 5463198..98c4ba7 100644
--- a/dlls/advapi32/cred.c
+++ b/dlls/advapi32/cred.c
@@ -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
--
1.7.12
More information about the wine-patches
mailing list