From efd0ef1e79ccd402c128157adcecf3aa7d46a6ea Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Sun, 24 Nov 2002 09:24:09 +0000 Subject: Fix warning svn-id: r5705 --- backends/fs/windows/windows-fs.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'backends/fs/windows') diff --git a/backends/fs/windows/windows-fs.cpp b/backends/fs/windows/windows-fs.cpp index e646d395a0..2cdb0d625c 100644 --- a/backends/fs/windows/windows-fs.cpp +++ b/backends/fs/windows/windows-fs.cpp @@ -61,22 +61,22 @@ private: char* WindowsFilesystemNode::toAscii(TCHAR *x) { -static char asciiString[MAX_PATH]; #ifndef UNICODE return (char*)x; -#else +#else + static char asciiString[MAX_PATH]; WideCharToMultiByte(CP_ACP, 0, x, _tcslen(x) + 1, asciiString, sizeof(asciiString), NULL, NULL); return asciiString; #endif } TCHAR* WindowsFilesystemNode::toUnicode(char *x) { -static TCHAR unicodeString[MAX_PATH]; #ifndef UNICODE return (TCHAR*)x; #else + static TCHAR unicodeString[MAX_PATH]; MultiByteToWideChar(CP_ACP, 0, x, strlen(x) + 1, unicodeString, sizeof(unicodeString)); return unicodeString; #endif -- cgit v1.2.3