Module: wine Branch: master Commit: 53b5e7f319b0abfeb196a8f810013a11d70dae27 URL: http://source.winehq.org/git/wine.git/?a=commit;h=53b5e7f319b0abfeb196a8f810...
Author: Hans Leidekker hans@codeweavers.com Date: Thu Jan 27 11:56:08 2011 +0100
msi: Check a return value (clang).
---
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)