Module: wine Branch: master Commit: 15f0cc3130951e60913b2ff9511a7e4c2e87ff79 URL: http://source.winehq.org/git/wine.git/?a=commit;h=15f0cc3130951e60913b2ff951...
Author: Hans Leidekker hans@codeweavers.com Date: Thu Jan 27 11:55:06 2011 +0100
msi: Check the return value of IActiveScript_AddNamedItem (clang).
---
dlls/msi/script.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/msi/script.c b/dlls/msi/script.c index 4f223da..27bbee1 100644 --- a/dlls/msi/script.c +++ b/dlls/msi/script.c @@ -143,6 +143,7 @@ DWORD call_script(MSIHANDLE hPackage, INT type, LPCWSTR script, LPCWSTR function
/* Add the session object */ hr = IActiveScript_AddNamedItem(pActiveScript, szSession, SCRIPTITEM_ISVISIBLE); + if (FAILED(hr)) goto done;
/* Pass the script to the engine */ hr = IActiveScriptParse64_ParseScriptText(pActiveScriptParse, script, NULL, NULL, NULL, 0, 0, 0L, NULL, NULL);