Fixes related to Windows registry key for Bochs.
- Fixed typo in registry key created by installer. - Updated registry key name used for BXSHARE environment variable generation.
This commit is contained in:
parent
16d9d04ee7
commit
0a805faf02
@ -258,7 +258,7 @@ SectionEnd
|
||||
|
||||
Section -post
|
||||
; Register Uninstaller
|
||||
WriteRegStr HKLM "Sostware\Bochs" "" $INSTDIR
|
||||
WriteRegStr HKLM "Software\Bochs" "" $INSTDIR
|
||||
WriteRegDword HKLM "Software\Bochs" "VersionMajor" "${VER_MAJOR}"
|
||||
WriteRegDword HKLM "Software\Bochs" "VersionMinor" "${VER_MINOR}"
|
||||
WriteRegDword HKLM "Software\Bochs" "VersionRevision" "${VER_REVISION}"
|
||||
|
@ -1879,7 +1879,7 @@ const char *get_builtin_variable(const char *varname)
|
||||
else {
|
||||
if (!strcmp(varname, "BXSHARE")) {
|
||||
#ifdef WIN32
|
||||
wsprintf(keyname, "Software\\Bochs %s", VERSION);
|
||||
wsprintf(keyname, "Software\\Bochs");
|
||||
code = RegOpenKeyEx(HKEY_LOCAL_MACHINE, keyname, 0, KEY_READ, &hkey);
|
||||
if (code == ERROR_SUCCESS) {
|
||||
data[0] = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user