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:
parent
5cb16f7878
commit
a48cdd0281
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue