From ed57d171f6fb6bb4e180696cc12caa568599566a Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Tue, 3 Aug 2021 15:41:02 -0500 Subject: Get system TEMP path from the registry. Also, correctly handle return codes from related path APIs. --- src/burn/engine/variable.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src/burn/engine/variable.cpp') 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( HRESULT hr = S_OK; WCHAR wzPath[MAX_PATH] = { }; - // get volume path name if (!::GetTempPathW(MAX_PATH, wzPath)) { ExitWithLastError(hr, "Failed to get temp path."); -- cgit v1.2.3-55-g6feb