[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] Fix error code checking for SetFilePointer() ca
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH] Fix error code checking for SetFilePointer() call |
Date: |
Tue, 11 Dec 2012 10:21:51 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
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 <address@hidden>
> ---
> 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 <address@hidden>