msi: Check the return value of IActiveScript_AddNamedItem (clang).

This commit is contained in:
Hans Leidekker 2011-01-27 11:55:06 +01:00 committed by Alexandre Julliard
parent a84af95d3e
commit 15f0cc3130
1 changed files with 1 additions and 0 deletions

View File

@ -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);