Mercurial > hg > bitcoin
diff util.cpp @ 197:b887c22e68fd draft
switched from wxStandardPaths to GetDefaultDataDir, fixes bug reported by m0mchil when username contains non-lower-ASCII characters
-- version 0.3.1
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@102 1a98c847-1fd6-4fd8-948a-caf3550aa51b
author | s_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b> |
---|---|
date | Fri, 09 Jul 2010 15:29:48 +0000 (2010-07-09) |
parents | 504786323858 |
children | a32c592fab07 091b5b2c8349 |
line wrap: on
line diff
--- a/util.cpp +++ b/util.cpp @@ -604,7 +604,8 @@ 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);