summaryrefslogtreecommitdiff
path: root/win32.c
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2006-12-26 17:36:18 +0000
committerDarkvater <Darkvater@openttd.org>2006-12-26 17:36:18 +0000
commit04628a1979f0ab8df4e78c0a57ca0d73381846be (patch)
tree8dae47833ded5c522ac7a89f69f10fc0c2530e90 /win32.c
parent08d0319f7c50fba3ea11071d7a781478438cbbab (diff)
downloadopenttd-04628a1979f0ab8df4e78c0a57ca0d73381846be.tar.xz
(svn r7565) -Codechange: Rework DEBUG functionality. Look for appropiate debugging levels to
use in debug.h. grfmsg() is now used as a specific debug-function for grf.
Diffstat (limited to 'win32.c')
-rw-r--r--win32.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/win32.c b/win32.c
index 9aa99dab9..a0a3d05b4 100644
--- a/win32.c
+++ b/win32.c
@@ -1041,7 +1041,7 @@ wchar_t *convert_to_fs(const char *name, wchar_t *utf16_buf, size_t buflen)
{
int len = MultiByteToWideChar(CP_UTF8, 0, name, -1, utf16_buf, buflen);
if (len == 0) {
- DEBUG(misc, 0) ("[utf8] Error converting '%s'. Errno %d", name, GetLastError());
+ DEBUG(misc, 0, "[utf8] error converting '%s'. Errno %d", name, GetLastError());
utf16_buf[0] = '\0';
}
@@ -1071,7 +1071,7 @@ char *convert_from_fs(const wchar_t *name, char *utf8_buf, size_t buflen)
{
int len = WideCharToMultiByte(CP_UTF8, 0, name, -1, utf8_buf, buflen, NULL, NULL);
if (len == 0) {
- DEBUG(misc, 0) ("[utf8] Error converting wide-string. Errno %d", GetLastError());
+ DEBUG(misc, 0, "[utf8] error converting wide-string. Errno %d", GetLastError());
utf8_buf[0] = '\0';
}
@@ -1107,7 +1107,7 @@ HRESULT OTTDSHGetFolderPath(HWND hwnd, int csidl, HANDLE hToken, DWORD dwFlags,
# define W(x) x "A"
#endif
if (!LoadLibraryList((Function*)&SHGetFolderPath, "SHFolder.dll\0" W("SHGetFolderPath") "\0\0")) {
- DEBUG(misc, 0) ("Unable to load " W("SHGetFolderPath") "from SHFolder.dll");
+ DEBUG(misc, 0, "Unable to load " W("SHGetFolderPath") "from SHFolder.dll");
}
#undef W
first_time = false;