msi: Don't fail if the directory already exists in MsiCreateAndVerifyInstallerDirectory.

This commit is contained in:
Hans Leidekker 2013-01-31 15:10:04 +01:00 committed by Alexandre Julliard
parent 86f077b163
commit cafbad3feb
1 changed files with 1 additions and 1 deletions

View File

@ -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;