mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-22 16:33:02 -05:00
memfs: fix erroneous realloc
This commit is contained in:
parent
4f5e00474e
commit
599430e649
@ -634,7 +634,7 @@ static NTSTATUS SetAllocationSize(FSP_FILE_SYSTEM *FileSystem,
|
||||
return STATUS_DISK_FULL;
|
||||
|
||||
FileData = realloc(FileNode->FileData, (size_t)AllocationSize);
|
||||
if (0 == FileData)
|
||||
if (0 == FileData && 0 != AllocationSize)
|
||||
return STATUS_INSUFFICIENT_RESOURCES;
|
||||
|
||||
FileNode->FileData = FileData;
|
||||
|
Loading…
x
Reference in New Issue
Block a user