Skip to content

Commit 7ea8427

Browse files
committed
Fixed problem that can't read the BOSS installed path from registry
1 parent 495521f commit 7ea8427

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Mopy/bash/bosh.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12021,9 +12021,9 @@ def __init__(self):
1202112021
try:
1202212022
import _winreg
1202312023
for hkey in (_winreg.HKEY_CURRENT_USER, _winreg.HKEY_LOCAL_MACHINE):
12024-
for wow6432 in ('','Wow6432Node\\'):
12024+
for wow6432 in (_winreg.KEY_WOW64_64KEY, _winreg.KEY_WOW64_32KEY):
1202512025
try:
12026-
key = _winreg.OpenKey(hkey,'Software\\%sBoss' % wow6432)
12026+
key = _winreg.OpenKey(hkey,'Software\\Boss', 0, _winreg.KEY_READ | wow6432)
1202712027
value = _winreg.QueryValueEx(key,'Installed Path')
1202812028
except:
1202912029
continue

0 commit comments

Comments
 (0)