James Hawkins : msi: Don't fail if we can't remove an existing
install file .
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Nov 29 07:24:35 CST 2006
Module: wine
Branch: master
Commit: 7125d3073d297f1b9a53d60958012ec59e3ca475
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7125d3073d297f1b9a53d60958012ec59e3ca475
Author: James Hawkins <truiken at gmail.com>
Date: Mon Nov 27 18:18:51 2006 -0800
msi: Don't fail if we can't remove an existing install file.
---
dlls/msi/files.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/dlls/msi/files.c b/dlls/msi/files.c
index 00f2a01..cf7baf4 100644
--- a/dlls/msi/files.c
+++ b/dlls/msi/files.c
@@ -355,8 +355,12 @@ static INT_PTR cabinet_notify(FDINOTIFIC
NULL, CREATE_ALWAYS, attrs, NULL );
if ( handle == INVALID_HANDLE_VALUE )
{
- ERR("failed to create %s (error %d)\n",
- debugstr_w( f->TargetPath ), GetLastError() );
+ if ( GetFileAttributesW( f->TargetPath ) != INVALID_FILE_ATTRIBUTES )
+ f->state = msifs_installed;
+ else
+ ERR("failed to create %s (error %d)\n",
+ debugstr_w( f->TargetPath ), GetLastError() );
+
return 0;
}
More information about the wine-cvs
mailing list