Hans Leidekker : msi: Fall back to the global temporary directory when the TempFolder property resolves to a non-existing directory .
Alexandre Julliard
julliard at winehq.org
Fri Jan 3 11:23:16 CST 2014
Module: wine
Branch: master
Commit: fcb924c1441f573fc6eabb2afcb44716de373e1c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=fcb924c1441f573fc6eabb2afcb44716de373e1c
Author: Hans Leidekker <hans at codeweavers.com>
Date: Fri Jan 3 15:01:00 2014 +0100
msi: Fall back to the global temporary directory when the TempFolder property resolves to a non-existing directory.
---
dlls/msi/custom.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/msi/custom.c b/dlls/msi/custom.c
index eadb355..63bec19 100644
--- a/dlls/msi/custom.c
+++ b/dlls/msi/custom.c
@@ -215,8 +215,8 @@ static MSIBINARY *create_temp_binary( MSIPACKAGE *package, LPCWSTR source, BOOL
DWORD sz = MAX_PATH, write;
UINT r;
- if (msi_get_property(package->db, szTempFolder, fmt, &sz) != ERROR_SUCCESS)
- GetTempPathW(MAX_PATH, fmt);
+ if (msi_get_property(package->db, szTempFolder, fmt, &sz) != ERROR_SUCCESS ||
+ GetFileAttributesW(fmt) == INVALID_FILE_ATTRIBUTES) GetTempPathW(MAX_PATH, fmt);
if (!GetTempFileNameW( fmt, szMsi, 0, tmpfile ))
{
More information about the wine-cvs
mailing list