Skip to content

Commit 7a8ba6c

Browse files
committed
loader: Don't cross 32/64 registry silos
1 parent baf2a4f commit 7a8ba6c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/loader/manifest_file.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -299,12 +299,8 @@ static void ReadRuntimeDataFilesInRegistry(ManifestFileType type, const std::str
299299
std::string full_registry_location = OPENXR_REGISTRY_LOCATION;
300300
full_registry_location += std::to_string(XR_VERSION_MAJOR(XR_CURRENT_API_VERSION));
301301
full_registry_location += runtime_registry_location;
302-
access_flags = KEY_QUERY_VALUE | KEY_WOW64_32KEY; // Search registry in 32-bit 'view'
302+
access_flags = KEY_QUERY_VALUE;
303303
LONG open_value = RegOpenKeyEx(HKEY_LOCAL_MACHINE, full_registry_location.c_str(), 0, access_flags, &hkey);
304-
if (ERROR_FILE_NOT_FOUND == open_value) {
305-
access_flags = KEY_QUERY_VALUE | KEY_WOW64_64KEY; // Look in 64-bit 'view'
306-
open_value = RegOpenKeyEx(HKEY_LOCAL_MACHINE, full_registry_location.c_str(), 0, access_flags, &hkey);
307-
}
308304
if (ERROR_SUCCESS != open_value) {
309305
std::string warning_message = "ReadLayerDataFilesInRegistry - failed to read registry location ";
310306
warning_message += full_registry_location;

0 commit comments

Comments
 (0)