Max Reitz 45d57f6e71 block/raw-win32: Always use -errno in hdev_open
On one occasion, hdev_open() returned -1 in case of an unknown error
instead of a proper -errno value. Adjust this to match the behavior of
raw_open() (in raw-win32), which is to return -EINVAL in this case.
Also, change the call to error_setg*() to match the one in raw_open() as
well.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2013-10-17 14:55:46 +02:00
..
2013-10-11 10:52:54 +02:00
2013-10-11 16:50:00 +02:00
2013-10-11 16:50:00 +02:00
2013-09-12 10:12:47 +02:00
2013-09-12 10:12:47 +02:00
2013-10-11 10:52:54 +02:00
2013-09-12 10:12:47 +02:00
2013-09-12 10:12:47 +02:00
2013-08-19 15:52:19 +02:00
2013-10-11 10:52:54 +02:00
2013-09-12 10:12:47 +02:00
2013-10-11 16:50:00 +02:00
2013-01-15 10:03:47 +01:00
2013-09-12 10:12:48 +02:00
2013-10-11 10:52:54 +02:00
2013-10-02 15:24:39 +02:00
2013-10-11 16:50:02 +02:00