msi: Fix return value for ITERATE_RemoveFiles (in the error case).

This commit is contained in:
Gerald Pfeifer 2010-05-01 17:45:56 +02:00 committed by Alexandre Julliard
parent 13e16f5f37
commit effda58ad3
1 changed files with 3 additions and 3 deletions

View File

@ -890,7 +890,7 @@ static UINT ITERATE_RemoveFiles(MSIRECORD *row, LPVOID param)
UINT install_mode;
LPWSTR dir = NULL, path = NULL;
DWORD size;
UINT r;
UINT ret = ERROR_SUCCESS;
component = MSI_RecordGetString(row, 2);
filename = MSI_RecordGetString(row, 3);
@ -920,7 +920,7 @@ static UINT ITERATE_RemoveFiles(MSIRECORD *row, LPVOID param)
path = msi_alloc(size * sizeof(WCHAR));
if (!path)
{
r = ERROR_OUTOFMEMORY;
ret = ERROR_OUTOFMEMORY;
goto done;
}
@ -948,7 +948,7 @@ done:
msi_free(path);
msi_free(dir);
return ERROR_SUCCESS;
return ret;
}
UINT ACTION_RemoveFiles( MSIPACKAGE *package )