msi: Use a return value (clang).

This commit is contained in:
Hans Leidekker 2011-01-27 11:55:38 +01:00 committed by Alexandre Julliard
parent e861283a62
commit af3733cde5
1 changed files with 3 additions and 3 deletions

View File

@ -1184,13 +1184,13 @@ static DWORD ACTION_CallScript( const GUID *guid )
{ {
msi_custom_action_info *info; msi_custom_action_info *info;
MSIHANDLE hPackage; MSIHANDLE hPackage;
UINT r = ERROR_FUNCTION_FAILED; UINT r;
info = find_action_by_guid( guid ); info = find_action_by_guid( guid );
if (!info) if (!info)
{ {
ERR("failed to find action %s\n", debugstr_guid( guid) ); ERR("failed to find action %s\n", debugstr_guid( guid) );
return r; return ERROR_FUNCTION_FAILED;
} }
TRACE("function %s, script %s\n", debugstr_w( info->target ), debugstr_w( info->source ) ); TRACE("function %s, script %s\n", debugstr_w( info->target ), debugstr_w( info->source ) );
@ -1199,13 +1199,13 @@ static DWORD ACTION_CallScript( const GUID *guid )
if (hPackage) if (hPackage)
{ {
r = call_script( hPackage, info->type, info->source, info->target, info->action ); r = call_script( hPackage, info->type, info->source, info->target, info->action );
TRACE("script returned %u\n", r);
MsiCloseHandle( hPackage ); MsiCloseHandle( hPackage );
} }
else else
ERR("failed to create handle for %p\n", info->package ); ERR("failed to create handle for %p\n", info->package );
release_custom_action_data( info ); release_custom_action_data( info );
return S_OK; return S_OK;
} }