From 9e15b5befb1ad49a830d63b2c3dc59bff78487b7 Mon Sep 17 00:00:00 2001 From: Jonas Suhr Christensen Date: Tue, 5 Aug 2014 20:29:14 +0200 Subject: Fixing windows. --- plugingui/pluginconfig.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'plugingui') diff --git a/plugingui/pluginconfig.cc b/plugingui/pluginconfig.cc index 913d7c7..d426e64 100644 --- a/plugingui/pluginconfig.cc +++ b/plugingui/pluginconfig.cc @@ -64,6 +64,7 @@ Config::~Config() FILE* openFilePtr(std::string mode) { #ifdef WIN32 + std::string configpath = "."; TCHAR szPath[256]; if(SUCCEEDED(SHGetFolderPath(NULL, CSIDL_APPDATA | CSIDL_FLAG_CREATE, @@ -71,10 +72,8 @@ FILE* openFilePtr(std::string mode) { 0, szPath))); { DEBUG(config, "WINDOWS APP DATA PATH:%s\n", szPath); - std::string configpath = "."; -// PathAppend(szPath, TEXT( -// PathAppend(szPath, TEXT(CONFIGFILENAME)); -// HANDLE hFile = CreateFile(szPath, GENERIC_READ | GENERIC_WRITE, 0, NULL); + PathAppend(szPath, TEXT(CONFIGDIRNAME)); + HANDLE hFile = CreateFile(szPath, GENERIC_READ | GENERIC_WRITE, 0, NULL); } #else std::string configpath = strdup(getenv("HOME")); -- cgit v1.2.3