Hans Leidekker : msi: Don' t fail if the directory already exists in MsiCreateAndVerifyInstallerDirectory .
Alexandre Julliard
julliard at winehq.org
Thu Jan 31 12:11:42 CST 2013
Module: wine
Branch: master
Commit: cafbad3feb33f3346dce441a6365239694feac55
URL: http://source.winehq.org/git/wine.git/?a=commit;h=cafbad3feb33f3346dce441a6365239694feac55
Author: Hans Leidekker <hans at codeweavers.com>
Date: Thu Jan 31 15:10:04 2013 +0100
msi: Don't fail if the directory already exists in MsiCreateAndVerifyInstallerDirectory.
---
dlls/msi/msi.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/msi/msi.c b/dlls/msi/msi.c
index a8bd57c..5aba98d 100644
--- a/dlls/msi/msi.c
+++ b/dlls/msi/msi.c
@@ -3810,7 +3810,7 @@ UINT WINAPI MsiCreateAndVerifyInstallerDirectory(DWORD dwReserved)
lstrcatW(path, installerW);
- if (!CreateDirectoryW(path, NULL))
+ if (!CreateDirectoryW(path, NULL) && GetLastError() != ERROR_ALREADY_EXISTS)
return ERROR_FUNCTION_FAILED;
return ERROR_SUCCESS;
More information about the wine-cvs
mailing list