summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_protocol_wine/opentrack-wrapper-wine-windows.cxx
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-07-18 16:50:02 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-07-18 16:50:02 +0200
commit8abb8a82c94ee6a703097a116a4aea45e07b079e (patch)
tree0ac806cb265fa4027ed77e565f92ec7e15ce6a94 /ftnoir_protocol_wine/opentrack-wrapper-wine-windows.cxx
parent3c3ac0056e0751c255008d6fdeecd9b331663ffc (diff)
Fix rest of Linux bitrot
Diffstat (limited to 'ftnoir_protocol_wine/opentrack-wrapper-wine-windows.cxx')
-rw-r--r--ftnoir_protocol_wine/opentrack-wrapper-wine-windows.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/ftnoir_protocol_wine/opentrack-wrapper-wine-windows.cxx b/ftnoir_protocol_wine/opentrack-wrapper-wine-windows.cxx
index 86ba4a41..6d5484a9 100644
--- a/ftnoir_protocol_wine/opentrack-wrapper-wine-windows.cxx
+++ b/ftnoir_protocol_wine/opentrack-wrapper-wine-windows.cxx
@@ -10,7 +10,7 @@
void create_registry_key(void) {
char dir[8192];
- if (GetCurrentDirectoryA(8192, dir) < 8192)
+ if (GetCurrentDirectoryA(8192, dir) < 8190)
{
HKEY hkpath;
if (RegCreateKeyExA(HKEY_CURRENT_USER,
@@ -26,6 +26,7 @@ void create_registry_key(void) {
for (int i = 0; dir[i]; i++)
if (dir[i] == '\\')
dir[i] = '/';
+ strcat(dir, "/");
(void) RegSetValueExA(hkpath, "Path", 0, REG_SZ, (BYTE*) dir, strlen(dir) + 1);
RegCloseKey(hkpath);
}