Commit fcb924c1 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

msi: Fall back to the global temporary directory when the TempFolder property…

msi: Fall back to the global temporary directory when the TempFolder property resolves to a non-existing directory.
parent 41d2b53c
...@@ -215,8 +215,8 @@ static MSIBINARY *create_temp_binary( MSIPACKAGE *package, LPCWSTR source, BOOL ...@@ -215,8 +215,8 @@ static MSIBINARY *create_temp_binary( MSIPACKAGE *package, LPCWSTR source, BOOL
DWORD sz = MAX_PATH, write; DWORD sz = MAX_PATH, write;
UINT r; UINT r;
if (msi_get_property(package->db, szTempFolder, fmt, &sz) != ERROR_SUCCESS) if (msi_get_property(package->db, szTempFolder, fmt, &sz) != ERROR_SUCCESS ||
GetTempPathW(MAX_PATH, fmt); GetFileAttributesW(fmt) == INVALID_FILE_ATTRIBUTES) GetTempPathW(MAX_PATH, fmt);
if (!GetTempFileNameW( fmt, szMsi, 0, tmpfile )) if (!GetTempFileNameW( fmt, szMsi, 0, tmpfile ))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment