Skip to content

Commit 1833ef4

Browse files
committed
ActiveX Imports: don't check WOW64 subkeys in subkey list
1 parent f3360a8 commit 1833ef4

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

FlashpointSecurePlayer/RegistryStates.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -462,10 +462,12 @@ private string GetRedirectedKeyValueName(string keyValueName, BINARY_TYPE binary
462462
if (wow64SubkeyList == null) {
463463
redirected = true;
464464
} else {
465-
for (int j = 0; j < wow64SubkeyList.Count; j++) {
466-
if (subkey.Equals(wow64SubkeyList[j], StringComparison.OrdinalIgnoreCase)) {
467-
redirected = true;
468-
break;
465+
if (!wow64Node) {
466+
for (int j = 0; j < wow64SubkeyList.Count; j++) {
467+
if (subkey.Equals(wow64SubkeyList[j], StringComparison.OrdinalIgnoreCase)) {
468+
redirected = true;
469+
break;
470+
}
469471
}
470472
}
471473
}

0 commit comments

Comments
 (0)