aboutsummaryrefslogtreecommitdiff
path: root/backends/fs/windows
diff options
context:
space:
mode:
authorPaweł Kołodziejski2005-02-19 16:00:22 +0000
committerPaweł Kołodziejski2005-02-19 16:00:22 +0000
commite2753574aca02a3da52c8bce675b95eb92216a74 (patch)
treeb554a799245488c6124268f6e2a7849ce5001276 /backends/fs/windows
parent373b33b22ad060a6ac2c6df2d6c72091672a13b4 (diff)
downloadscummvm-rg350-e2753574aca02a3da52c8bce675b95eb92216a74.tar.gz
scummvm-rg350-e2753574aca02a3da52c8bce675b95eb92216a74.tar.bz2
scummvm-rg350-e2753574aca02a3da52c8bce675b95eb92216a74.zip
compatibility fixes for wince
svn-id: r16814
Diffstat (limited to 'backends/fs/windows')
-rw-r--r--backends/fs/windows/windows-fs.cpp4
1 files changed, 2 insertions, 2 deletions
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 {