diff options
author | s_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b> | 2010-07-09 15:29:48 +0000 |
---|---|---|
committer | s_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b> | 2010-07-09 15:29:48 +0000 |
commit | f32339e70021775861466636f8a387aaf5ddf728 (patch) | |
tree | d0bcc1b33335dc30e04f8e1563508ae7dd5efae4 /util.cpp | |
parent | c8063ff034797a1f8fe90e0ed959392ebdc3807d (diff) |
switched from wxStandardPaths to GetDefaultDataDir, fixes bug reported by m0mchil when username contains non-lower-ASCII characters
-- version 0.3.1
Diffstat (limited to 'util.cpp')
-rw-r--r-- | util.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -604,7 +604,8 @@ void GetDataDir(char* pszDir) static char pszCachedDir[MAX_PATH];
if (pszCachedDir[0] == 0)
{
- strlcpy(pszCachedDir, wxStandardPaths::Get().GetUserDataDir().c_str(), sizeof(pszCachedDir));
+ //strlcpy(pszCachedDir, wxStandardPaths::Get().GetUserDataDir().c_str(), sizeof(pszCachedDir));
+ strlcpy(pszCachedDir, GetDefaultDataDir().c_str(), sizeof(pszCachedDir));
_mkdir(pszCachedDir);
}
strlcpy(pszDir, pszCachedDir, MAX_PATH);
|