From 04628a1979f0ab8df4e78c0a57ca0d73381846be Mon Sep 17 00:00:00 2001 From: Darkvater Date: Tue, 26 Dec 2006 17:36:18 +0000 Subject: (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. --- win32.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'win32.c') 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; -- cgit v1.2.3-54-g00ecf