From aed8844e5718450a70528a7666efacbed35fe176 Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Sun, 2 Oct 2011 09:23:53 +0300 Subject: [win] Compilation fixes --- platform/platform_win.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'platform/platform_win.cpp') diff --git a/platform/platform_win.cpp b/platform/platform_win.cpp index a8c3b8d5c9..ff59584210 100644 --- a/platform/platform_win.cpp +++ b/platform/platform_win.cpp @@ -4,7 +4,9 @@ #include -static bool GetUserWritableDir(string & outDir) +#define LOCALAPPDATA_DIR "MapsWithMe" + +bool GetUserWritableDir(string & outDir) { char pathBuf[MAX_PATH] = {0}; if (SUCCEEDED(::SHGetFolderPathA(NULL, CSIDL_LOCAL_APPDATA | CSIDL_FLAG_CREATE, NULL, SHGFP_TYPE_CURRENT, pathBuf))) @@ -19,7 +21,7 @@ static bool GetUserWritableDir(string & outDir) } /// @return full path including binary itself -static bool GetPathToBinary(string & outPath) +bool GetPathToBinary(string & outPath) { // get path to executable char pathBuf[MAX_PATH] = {0}; -- cgit v1.2.3