diff --git a/block.c b/block.c index 48305b7..1db8473 100644 --- a/block.c +++ b/block.c @@ -290,13 +290,13 @@ static BlockDriver *find_protocol(const char *filename) /* TODO Drivers without bdrv_file_open must be specified explicitly */ + p = strchr(filename, ':'); + if (!p || #ifdef _WIN32 - if (is_windows_drive(filename) || + is_windows_drive(filename) || is_windows_drive_prefix(filename)) - return bdrv_find_format("file"); #endif - p = strchr(filename, ':'); - if (!p) { + { drv1 = find_hdev_driver(filename); if (!drv1) { drv1 = bdrv_find_format("file");