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:
Volker Ruppert 2019-11-30 17:51:19 +00:00
parent 16d9d04ee7
commit 0a805faf02
2 changed files with 2 additions and 2 deletions

View File

@ -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}"

View File

@ -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;