diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-01-07 18:22:37 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-01-07 18:22:37 +0000 |
commit | 21664424ede70eebaaddae1168261e73fa46bc33 (patch) | |
tree | 0cd50b1ac3b85a5bfad883d5134ac488b3437c7c /block.c | |
parent | 3b39528c156638be50b713a5cc5a398a443a65c0 (diff) |
path_is_absolute() fix for win32
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2307 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'block.c')
-rw-r--r-- | block.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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++; |