OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b39528
)
path_is_absolute() fix for win32
author
bellard
<bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 7 Jan 2007 18:22:37 +0000
(18:22 +0000)
committer
bellard
<bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 7 Jan 2007 18:22:37 +0000
(18:22 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2307
c046a42c
-6fe2-441c-8c8c-
71466251a162
block.c
patch
|
blob
|
history
diff --git
a/block.c
b/block.c
index
bbece2d
..
9264e42
100644
(file)
--- 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++;