http://git.etersoft.ru/projects
/
wine
/
eterwine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a7371e
)
msi: Check a return value (clang).
author
Hans Leidekker
<hans@codeweavers.com>
Thu, 27 Jan 2011 10:56:08 +0000
(11:56 +0100)
committer
Alexandre Julliard
<julliard@winehq.org>
Thu, 27 Jan 2011 15:31:25 +0000
(16:31 +0100)
dlls/msi/source.c
patch
|
blob
|
blame
|
history
diff --git
a/dlls/msi/source.c
b/dlls/msi/source.c
index 602f03fd0bbe6fbff01e19583f90c9e890e8b0fa..9b7a9ead3a5f3e298c992f1e61f825b04310da94 100644
(file)
--- 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)