aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libs/dutil/WixToolset.DUtil/path3utl.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libs/dutil/WixToolset.DUtil/path3utl.cpp b/src/libs/dutil/WixToolset.DUtil/path3utl.cpp
index 844cbfbb..999a99ac 100644
--- a/src/libs/dutil/WixToolset.DUtil/path3utl.cpp
+++ b/src/libs/dutil/WixToolset.DUtil/path3utl.cpp
@@ -136,6 +136,11 @@ static HRESULT GetTempPathFromSystemEnvironmentVariable(
136 hr = EnvExpandEnvironmentStringsForUser(NULL, sczValue, psczPath, NULL); 136 hr = EnvExpandEnvironmentStringsForUser(NULL, sczValue, psczPath, NULL);
137 PathExitOnFailure(hr, "Failed to expand environment variables for system in string: %ls", sczValue); 137 PathExitOnFailure(hr, "Failed to expand environment variables for system in string: %ls", sczValue);
138 } 138 }
139 else
140 {
141 hr = StrAllocString(psczPath, sczValue, 0);
142 PathExitOnFailure(hr, "Failed to copy environment variable: %ls", wzName);
143 }
139 144
140 hr = PathBackslashTerminate(psczPath); 145 hr = PathBackslashTerminate(psczPath);
141 PathExitOnFailure(hr, "Failed to backslash terminate system '%ls' value.", wzName); 146 PathExitOnFailure(hr, "Failed to backslash terminate system '%ls' value.", wzName);