diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2022-04-22 16:56:21 -0500 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2022-04-23 15:40:21 -0500 |
| commit | a981e29d7a3df566754356c3fe1eb938a5cac4c1 (patch) | |
| tree | 9d2b2abac872ae3c4917003812951e68b72e7163 /src/libs/dutil/WixToolset.DUtil/regutil.cpp | |
| parent | 72e20f682c0d64102e86439ba5527dd0d71932ae (diff) | |
| download | wix-a981e29d7a3df566754356c3fe1eb938a5cac4c1.tar.gz wix-a981e29d7a3df566754356c3fe1eb938a5cac4c1.tar.bz2 wix-a981e29d7a3df566754356c3fe1eb938a5cac4c1.zip | |
Make the estimated size in ARP a little more accurate.
Fixes 4039
Diffstat (limited to 'src/libs/dutil/WixToolset.DUtil/regutil.cpp')
| -rw-r--r-- | src/libs/dutil/WixToolset.DUtil/regutil.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libs/dutil/WixToolset.DUtil/regutil.cpp b/src/libs/dutil/WixToolset.DUtil/regutil.cpp index 219a6c11..78507ade 100644 --- a/src/libs/dutil/WixToolset.DUtil/regutil.cpp +++ b/src/libs/dutil/WixToolset.DUtil/regutil.cpp | |||
| @@ -107,10 +107,9 @@ DAPI_(HRESULT) RegCreate( | |||
| 107 | ) | 107 | ) |
| 108 | { | 108 | { |
| 109 | HRESULT hr = S_OK; | 109 | HRESULT hr = S_OK; |
| 110 | DWORD er = ERROR_SUCCESS; | ||
| 111 | 110 | ||
| 112 | er = vpfnRegCreateKeyExW(hkRoot, wzSubKey, 0, NULL, REG_OPTION_NON_VOLATILE, dwAccess, NULL, phk, NULL); | 111 | hr = RegCreateEx(hkRoot, wzSubKey, dwAccess, REG_KEY_DEFAULT, FALSE, NULL, phk, NULL); |
| 113 | RegExitOnWin32Error(er, hr, "Failed to create registry key."); | 112 | RegExitOnFailure(hr, "Failed to create registry key."); |
| 114 | 113 | ||
| 115 | LExit: | 114 | LExit: |
| 116 | return hr; | 115 | return hr; |
