https://git.reactos.org/?p=reactos.git;a=commitdiff;h=6e5382cc5a83640cf5b08…
commit 6e5382cc5a83640cf5b089a436f8d8aa4554224a
Author: winesync <ros-dev(a)reactos.org>
AuthorDate: Sun Mar 13 00:16:20 2022 +0100
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Sun Mar 20 19:28:06 2022 +0100
[WINESYNC] msi: Return an error code instead of a button id in msi_change_media().
Signed-off-by: Hans Leidekker <hans(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id a47343b97369e5f64bb78a7421f2d75258da282a by Alexandre Julliard
<julliard(a)winehq.org>
---
dll/win32/msi/media.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dll/win32/msi/media.c b/dll/win32/msi/media.c
index 3d4a8c09eb6..5f8c26a3443 100644
--- a/dll/win32/msi/media.c
+++ b/dll/win32/msi/media.c
@@ -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 )