From a96db4a508f1d1774500ab89f2c57e581fb5a13a Mon Sep 17 00:00:00 2001 From: Bob Arnson Date: Sun, 9 Jan 2022 23:23:51 -0500 Subject: Add registry bitness to RegUtil and BUtil. Fixes https://github.com/wixtoolset/issues/issues/6669. Fixes https://github.com/wixtoolset/issues/issues/6670. --- src/libs/dutil/WixToolset.DUtil/deputil.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libs/dutil/WixToolset.DUtil/deputil.cpp') diff --git a/src/libs/dutil/WixToolset.DUtil/deputil.cpp b/src/libs/dutil/WixToolset.DUtil/deputil.cpp index 2e6d6a6c..754365e9 100644 --- a/src/libs/dutil/WixToolset.DUtil/deputil.cpp +++ b/src/libs/dutil/WixToolset.DUtil/deputil.cpp @@ -337,7 +337,7 @@ DAPI_(HRESULT) DepRegisterDependency( DepExitOnFailure(hr, "Failed to allocate the registry key for dependency \"%ls\".", wzProviderKey); // Create the dependency key (or open it if it already exists). - hr = RegCreateEx(hkHive, sczKey, KEY_WRITE, FALSE, NULL, &hkKey, &fCreated); + hr = RegCreateEx(hkHive, sczKey, KEY_WRITE, REG_KEY_DEFAULT, FALSE, NULL, &hkKey, &fCreated); DepExitOnFailure(hr, "Failed to create the dependency registry key \"%ls\".", sczKey); // Set the id if it was provided. @@ -417,14 +417,14 @@ DAPI_(HRESULT) DepRegisterDependent( DepExitOnFailure(hr, "Failed to allocate the registry key for dependency \"%ls\".", wzDependencyProviderKey); // Create the dependency key (or open it if it already exists). - hr = RegCreateEx(hkHive, sczDependencyKey, KEY_WRITE, FALSE, NULL, &hkDependencyKey, &fCreated); + hr = RegCreateEx(hkHive, sczDependencyKey, KEY_WRITE, REG_KEY_DEFAULT, FALSE, NULL, &hkDependencyKey, &fCreated); DepExitOnFailure(hr, "Failed to create the dependency registry key \"%ls\".", sczDependencyKey); // Create the subkey to register the dependent. hr = StrAllocFormatted(&sczKey, L"%ls\\%ls", vsczRegistryDependents, wzProviderKey); DepExitOnFailure(hr, "Failed to allocate dependent subkey \"%ls\" under dependency \"%ls\".", wzProviderKey, wzDependencyProviderKey); - hr = RegCreateEx(hkDependencyKey, sczKey, KEY_WRITE, FALSE, NULL, &hkKey, &fCreated); + hr = RegCreateEx(hkDependencyKey, sczKey, KEY_WRITE, REG_KEY_DEFAULT, FALSE, NULL, &hkKey, &fCreated); DepExitOnFailure(hr, "Failed to create the dependency subkey \"%ls\".", sczKey); // Set the minimum version if not NULL. -- cgit v1.2.3-55-g6feb