On Mon, Dec 10, 2012 at 12:56:22PM +0100, Fabien Chouteau wrote: > An error has occurred if the return value is invalid_set_file_pointer > and getlasterror doesn't return no_error. > > Signed-off-by: Fabien Chouteau <chout...@adacore.com> > --- > block/raw-win32.c | 17 ++++++++++++++--- > 1 file changed, 14 insertions(+), 3 deletions(-)
The fprintf() is kind of iffy but we only return -EIO so I guess it helps to print the full error. Acked-by: Stefan Hajnoczi <stefa...@redhat.com>