platform/win32.c
changeset 467 99664d9842cb
parent 448 11fb9dcda01d
child 476 3af0e0852c41
--- a/platform/win32.c	Wed Aug 21 02:58:30 2002 +0000
+++ b/platform/win32.c	Wed Aug 21 02:59:15 2002 +0000
@@ -369,7 +369,9 @@
 
 int __PHYSFS_platformExists(const char *fname)
 {
-    return(GetFileAttributes(fname) != INVALID_FILE_ATTRIBUTES);
+    BAIL_IF_MACRO(GetFileAttributes(fname) == INVALID_FILE_ATTRIBUTES,
+                  win32strerror(), 0);
+    return(1);
 } /* __PHYSFS_platformExists */