diff options
Diffstat (limited to 'src/libs/dutil/WixToolset.DUtil/regutil.cpp')
-rw-r--r-- | src/libs/dutil/WixToolset.DUtil/regutil.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/dutil/WixToolset.DUtil/regutil.cpp b/src/libs/dutil/WixToolset.DUtil/regutil.cpp index 584966ed..9a1b9ced 100644 --- a/src/libs/dutil/WixToolset.DUtil/regutil.cpp +++ b/src/libs/dutil/WixToolset.DUtil/regutil.cpp | |||
@@ -444,7 +444,7 @@ DAPI_(HRESULT) RegReadValue( | |||
444 | if (fExpand && SUCCEEDED(hr) && REG_EXPAND_SZ == *pdwType) | 444 | if (fExpand && SUCCEEDED(hr) && REG_EXPAND_SZ == *pdwType) |
445 | { | 445 | { |
446 | LPWSTR sczValue = reinterpret_cast<LPWSTR>(*ppbBuffer); | 446 | LPWSTR sczValue = reinterpret_cast<LPWSTR>(*ppbBuffer); |
447 | hr = PathExpand(&sczExpand, sczValue, PATH_EXPAND_ENVIRONMENT); | 447 | hr = EnvExpandEnvironmentStrings(sczValue, &sczExpand, NULL); |
448 | RegExitOnFailure(hr, "Failed to expand registry value: %ls", sczValue); | 448 | RegExitOnFailure(hr, "Failed to expand registry value: %ls", sczValue); |
449 | 449 | ||
450 | *ppbBuffer = reinterpret_cast<LPBYTE>(sczExpand); | 450 | *ppbBuffer = reinterpret_cast<LPBYTE>(sczExpand); |