Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Zolotarev <deathbaba@gmail.com>2011-10-02 10:23:53 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:24:59 +0300
commitaed8844e5718450a70528a7666efacbed35fe176 (patch)
tree183571ad8018dd887078374c8957a5eff2b8cbc8 /platform/platform_win.cpp
parentf91f5108ccdb1625f452af17e9fc0e65ad4d6b44 (diff)
[win] Compilation fixes
Diffstat (limited to 'platform/platform_win.cpp')
-rw-r--r--platform/platform_win.cpp6
1 files changed, 4 insertions, 2 deletions
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 <shlobj.h>
-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};