[07/10] msi: Check a return value (clang).
Hans Leidekker
hans at codeweavers.com
Thu Jan 27 04:56:08 CST 2011
---
dlls/msi/source.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/dlls/msi/source.c b/dlls/msi/source.c
index 602f03f..9b7a9ea 100644
--- a/dlls/msi/source.c
+++ b/dlls/msi/source.c
@@ -1130,6 +1130,12 @@ UINT WINAPI MsiSourceListAddSourceExW( LPCWSTR szProduct, LPCWSTR szUserSid,
RegCloseKey(sourcekey);
return ERROR_FUNCTION_FAILED;
}
+ if (rc != ERROR_SUCCESS)
+ {
+ ERR("can't open subkey %u\n", rc);
+ RegCloseKey(sourcekey);
+ return rc;
+ }
postfix = (dwOptions & MSISOURCETYPE_NETWORK) ? szBackSlash : szForwardSlash;
if (szSource[lstrlenW(szSource) - 1] == *postfix)
--
1.7.1
More information about the wine-patches
mailing list