aboutsummaryrefslogtreecommitdiff
path: root/src/burn/engine/variable.cpp
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2021-08-03 15:41:02 -0500
committerSean Hall <r.sean.hall@gmail.com>2021-08-04 10:03:57 -0500
commited57d171f6fb6bb4e180696cc12caa568599566a (patch)
treec1e6cbe61440d44f3f11160512e12042ce7ddd2a /src/burn/engine/variable.cpp
parent5815688519a60e63e18c13dfe0908d76757cbc53 (diff)
downloadwix-ed57d171f6fb6bb4e180696cc12caa568599566a.tar.gz
wix-ed57d171f6fb6bb4e180696cc12caa568599566a.tar.bz2
wix-ed57d171f6fb6bb4e180696cc12caa568599566a.zip
Get system TEMP path from the registry.
Also, correctly handle return codes from related path APIs.
Diffstat (limited to 'src/burn/engine/variable.cpp')
-rw-r--r--src/burn/engine/variable.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/burn/engine/variable.cpp b/src/burn/engine/variable.cpp
index e2b1f1f2..e7391a9f 100644
--- a/src/burn/engine/variable.cpp
+++ b/src/burn/engine/variable.cpp
@@ -1916,7 +1916,6 @@ static HRESULT InitializeVariableTempFolder(
1916 HRESULT hr = S_OK; 1916 HRESULT hr = S_OK;
1917 WCHAR wzPath[MAX_PATH] = { }; 1917 WCHAR wzPath[MAX_PATH] = { };
1918 1918
1919 // get volume path name
1920 if (!::GetTempPathW(MAX_PATH, wzPath)) 1919 if (!::GetTempPathW(MAX_PATH, wzPath))
1921 { 1920 {
1922 ExitWithLastError(hr, "Failed to get temp path."); 1921 ExitWithLastError(hr, "Failed to get temp path.");