Closed GoogleCodeExporter closed 9 years ago
Index: file.cpp
===================================================================
--- file.cpp (revision 9845)
+++ file.cpp (working copy)
@@ -1313,8 +1313,12 @@
return true;
}
- // if we only have a single range in the file, we're not sparse
- return returned_bytes != sizeof(FILE_ALLOCATED_RANGE_BUFFER);
+ // if we have more than one range in the file, we're sparse
+ if (returned_bytes != sizeof(FILE_ALLOCATED_RANGE_BUFFER)) {
+ return true;
+ }
+
+ return (in.Length.QuadPart != out[0].Length.QuadPart);
}
#endif
Original comment by ajax16...@gmail.com
on 10 May 2014 at 10:10
thanks! checked-in!
Original comment by arvid.no...@gmail.com
on 10 May 2014 at 11:48
Original issue reported on code.google.com by
ajax16...@gmail.com
on 10 May 2014 at 10:09