w32: Fix qemu_ftruncate64
authorStefan Weil <weil@mail.berlios.de>
Sat, 20 Aug 2011 10:10:05 +0000 (12:10 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 22 Aug 2011 15:19:00 +0000 (10:19 -0500)
commit6e1c21dd26d8e1e91632af8766b3739ee2166938
tree2f51b19ea8f87c8d5386af80f83559a2f5512494
parent94a95e0669f5656b9aff0e3cefeecef81d30dade
w32: Fix qemu_ftruncate64

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 <weil@mail.berlios.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
block/raw-win32.c