msi: Return an error code instead of a button id in msi_change_media().

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2019-01-02 19:39:13 +01:00
parent dc80a00329
commit a47343b973
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ static UINT msi_change_media(MSIPACKAGE *package, MSIMEDIAINFO *mi)
msiobj_release(&record->hdr);
msi_free(source_dir);
return r;
return r == IDRETRY ? ERROR_SUCCESS : ERROR_INSTALL_SOURCE_ABSENT;
}
static MSICABINETSTREAM *msi_get_cabinet_stream( MSIPACKAGE *package, UINT disk_id )