From e2753574aca02a3da52c8bce675b95eb92216a74 Mon Sep 17 00:00:00 2001 From: Paweł Kołodziejski Date: Sat, 19 Feb 2005 16:00:22 +0000 Subject: compatibility fixes for wince svn-id: r16814 --- backends/fs/windows/windows-fs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backends/fs/windows') diff --git a/backends/fs/windows/windows-fs.cpp b/backends/fs/windows/windows-fs.cpp index 3ce0548d6c..2ab0d24797 100644 --- a/backends/fs/windows/windows-fs.cpp +++ b/backends/fs/windows/windows-fs.cpp @@ -150,9 +150,9 @@ WindowsFilesystemNode::WindowsFilesystemNode(const String &p) { _displayName = String(str + offset, len); // Check whether it is a directory, and whether the file actually exists - DWORD fileAttribs = GetFileAttributes(_path.c_str()); + DWORD fileAttribs = GetFileAttributes(toUnicode((char *)_path.c_str())); - if (fileAttribs == INVALID_FILE_ATTRIBUTES) { + if (fileAttribs == 0xffffffff) { _isValid = false; _isDirectory = false; } else { -- cgit v1.2.3