Re: [Qemu-devel] [PATCH] w32: Fix qemu_ftruncate64

2011-08-22 Thread Anthony Liguori
On 08/20/2011 05:10 AM, Stefan Weil wrote: SetFilePointer returns INVALID_SET_FILE_POINTER when it fails. In addition, GetLastError must be checked. The first call of SetFilePointer did not use INVALID_SET_FILE_POINTER, the second call used wrong error handling. Signed-off-by: Stefan Weil App

Re: [Qemu-devel] [PATCH] w32: Fix qemu_ftruncate64

2011-08-20 Thread Stefan Weil
Am 20.08.2011 12:10, schrieb Stefan Weil: SetFilePointer returns INVALID_SET_FILE_POINTER when it fails. In addition, GetLastError must be checked. The first call of SetFilePointer did not use INVALID_SET_FILE_POINTER, the second call used wrong error handling. Signed-off-by: Stefan Weil ---

[Qemu-devel] [PATCH] w32: Fix qemu_ftruncate64

2011-08-20 Thread Stefan Weil
SetFilePointer returns INVALID_SET_FILE_POINTER when it fails. In addition, GetLastError must be checked. The first call of SetFilePointer did not use INVALID_SET_FILE_POINTER, the second call used wrong error handling. Signed-off-by: Stefan Weil --- block/raw-win32.c |8 ++-- 1 files c