aboutsummaryrefslogtreecommitdiff
path: root/util.cpp
diff options
context:
space:
mode:
authors_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2010-02-17 17:22:01 +0000
committers_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2010-02-17 17:22:01 +0000
commite4806597650d8a17f1da7a5b5501eb367ea786fc (patch)
treef474d2b08e0b538df5fa5e431b8a2bfdc6f79d09 /util.cpp
parent2b63e68bbfebc370aa6f2d542419a6e5680f33c5 (diff)
downloadbitcoin-e4806597650d8a17f1da7a5b5501eb367ea786fc.tar.xz
all builds are now with wxWidgets-2.9.0, we are now using UTF-8, v0.2.2
added support for language translation file locale/<lang>/LC_MESSAGES/bitcoin.mo -- version 0.2.2 git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@66 1a98c847-1fd6-4fd8-948a-caf3550aa51b
Diffstat (limited to 'util.cpp')
-rw-r--r--util.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/util.cpp b/util.cpp
index 2f5be2227f..266c1dd7df 100644
--- a/util.cpp
+++ b/util.cpp
@@ -90,7 +90,7 @@ void RandAddSeedPerfmon()
unsigned char pdata[250000];
memset(pdata, 0, sizeof(pdata));
unsigned long nSize = sizeof(pdata);
- long ret = RegQueryValueEx(HKEY_PERFORMANCE_DATA, "Global", NULL, NULL, pdata, &nSize);
+ long ret = RegQueryValueExA(HKEY_PERFORMANCE_DATA, "Global", NULL, NULL, pdata, &nSize);
RegCloseKey(HKEY_PERFORMANCE_DATA);
if (ret == ERROR_SUCCESS)
{
@@ -193,7 +193,7 @@ inline int OutputDebugStringF(const char* pszFormat, ...)
p2++;
char c = *p2;
*p2 = '\0';
- OutputDebugString(p1);
+ OutputDebugStringA(p1);
*p2 = c;
p1 = p2;
}
@@ -441,7 +441,7 @@ void FormatException(char* pszMessage, std::exception* pex, const char* pszThrea
#ifdef __WXMSW__
char pszModule[MAX_PATH];
pszModule[0] = '\0';
- GetModuleFileName(NULL, pszModule, sizeof(pszModule));
+ GetModuleFileNameA(NULL, pszModule, sizeof(pszModule));
#else
// might not be thread safe, uses wxString
//const char* pszModule = wxStandardPaths::Get().GetExecutablePath().mb_str();