[1/3] msi: Don't fail if the directory already exists in MsiCreateAndVerifyInstallerDirectory.
Hans Leidekker
hans at codeweavers.com
Thu Jan 31 08:10:04 CST 2013
---
dlls/msi/msi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
--
1.7.10.4
More information about the wine-patches
mailing list