fix check for fully allocated file on windows

The file allocation size is in terms of clusters so it will likely be larger
than the file size even with a freshly allocated file.
This commit is contained in:
Steven Siloti 2017-06-14 20:38:22 -07:00 committed by Arvid Norberg
parent 5cb16f7878
commit a48cdd0281
1 changed files with 1 additions and 1 deletions

View File

@ -2117,7 +2117,7 @@ typedef struct _FILE_ALLOCATED_RANGE_BUFFER {
offs = inf.AllocationSize;
}
if (offs.QuadPart != s)
if (offs.QuadPart < s)
{
// if the user has permissions, avoid filling
// the file with zeroes, but just fill it with