Browse Source

Support determining the install path when installed to the 32-bit Windows program files directory.

master
Reece H. Dunn 8 years ago
parent
commit
f6536be5b2
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/libespeak-ng/speech.c

+ 2
- 0
src/libespeak-ng/speech.c View File



buf[0] = 0; buf[0] = 0;
RegOpenKeyExA(HKEY_LOCAL_MACHINE, "Software\\eSpeak NG", 0, KEY_READ, &RegKey); RegOpenKeyExA(HKEY_LOCAL_MACHINE, "Software\\eSpeak NG", 0, KEY_READ, &RegKey);
if (RegKey == NULL)
RegOpenKeyExA(HKEY_LOCAL_MACHINE, "Software\\WOW6432Node\\eSpeak NG", 0, KEY_READ, &RegKey);
size = sizeof(buf); size = sizeof(buf);
var_type = REG_SZ; var_type = REG_SZ;
RegQueryValueExA(RegKey, "Path", 0, &var_type, buf, &size); RegQueryValueExA(RegKey, "Path", 0, &var_type, buf, &size);

Loading…
Cancel
Save