fix build on windows, mkII

This commit is contained in:
Tim Felgentreff 2020-11-30 07:25:52 +01:00
parent a2b4f38b75
commit 77fe9d0121
2 changed files with 2 additions and 2 deletions

View file

@ -187,7 +187,7 @@ stratagus-game-launcher.h - Stratagus Game Launcher
static void SetUserDataPath(char* data_path) {
#if defined(WIN32)
SHGetFolderPathA(NULL, CSIDL_PERSONAL|CSIDL_FLAG_CREATE, NULL, 0, data_path)))
SHGetFolderPath(NULL, CSIDL_PERSONAL|CSIDL_FLAG_CREATE, NULL, 0, data_path);
// strcpy(data_path, getenv("APPDATA"));
#else
strcpy(data_path, getenv("HOME"));

View file

@ -56,7 +56,7 @@ void Parameters::SetDefaultUserDirectory()
userDirectory = StratagusLibPath;
#elif USE_WIN32
char data_path[4096] = {'\0'};
SHGetFolderPathA(NULL, CSIDL_PERSONAL|CSIDL_FLAG_CREATE, NULL, 0, data_path)))
SHGetFolderPath(NULL, CSIDL_PERSONAL|CSIDL_FLAG_CREATE, NULL, 0, data_path);
userDirectory = data_path;
// userDirectory = getenv("APPDATA");
#else