From f78f46a1add2067647bad6715e2be45172e52441 Mon Sep 17 00:00:00 2001 From: bellard Date: Sun, 7 Jan 2007 18:22:37 +0000 Subject: [PATCH] path_is_absolute() fix for win32 --- block.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/block.c b/block.c index bbece2d24c..9264e42a63 100644 --- a/block.c +++ b/block.c @@ -59,6 +59,11 @@ static BlockDriver *first_drv; int path_is_absolute(const char *path) { const char *p; +#ifdef _WIN32 + /* specific case for names like: "\\.\d:" */ + if (*path == '/' || *path == '\\') + return 1; +#endif p = strchr(path, ':'); if (p) p++; -- 2.39.5