skyrope-mit-merge-hell-20040226
[openafs.git] / src / WINNT / client_exp / gui2fs.cpp
index 3769ca1..7880d57 100644 (file)
@@ -1579,10 +1579,9 @@ BOOL IsPathInAfs(const CHAR *strPath)
     blob.out_size = MAXSIZE;
     blob.out = space;
 
-    code = pioctl(PCCHAR(strPath), VIOC_FILE_CELL_NAME, &blob, 1);
-    if (code) {
-       if ((errno == EINVAL) || (errno == ENOENT)) return FALSE;
-    }
+    code = pioctl((LPTSTR)((LPCTSTR)strPath), VIOC_FILE_CELL_NAME, &blob, 1);
+    if (code)
+        return FALSE;
     return TRUE;
 }