Commit 21664424ede70eebaaddae1168261e73fa46bc33

Authored by bellard
1 parent 3b39528c

path_is_absolute() fix for win32


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2307 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 5 additions and 0 deletions
... ... @@ -59,6 +59,11 @@ static BlockDriver *first_drv;
59 59 int path_is_absolute(const char *path)
60 60 {
61 61 const char *p;
  62 +#ifdef _WIN32
  63 + /* specific case for names like: "\\.\d:" */
  64 + if (*path == '/' || *path == '\\')
  65 + return 1;
  66 +#endif
62 67 p = strchr(path, ':');
63 68 if (p)
64 69 p++;
... ...