Because win32 code doesn't just run on windows, wine runs
with unix style paths.
{
return_val_if_fail (path != NULL, false);
-#ifdef OS_UNIX
- return (path[0] == '/');
-#else
- return (path[0] != '\0' && path[1] == ':' && path[2] == '\\');
+ return (path[0] == '/')
+#ifdef OS_WIN32
+ || (path[0] != '\0' && path[1] == ':' && path[2] == '\\')
#endif
+ ;
}
char *
#else /* OS_WIN32 */
CuAssertTrue (tc, p11_path_absolute ("C:\\home"));
CuAssertTrue (tc, !p11_path_absolute ("home"));
- CuAssertTrue (tc, !p11_path_absolute ("/home"));
+ CuAssertTrue (tc, p11_path_absolute ("/home"));
#endif
}