mirror of
				https://github.com/winfsp/winfsp.git
				synced 2025-10-30 19:48:38 -05:00 
			
		
		
		
	memfs: fix erroneous realloc
This commit is contained in:
		| @@ -634,7 +634,7 @@ static NTSTATUS SetAllocationSize(FSP_FILE_SYSTEM *FileSystem, | |||||||
|             return STATUS_DISK_FULL; |             return STATUS_DISK_FULL; | ||||||
|  |  | ||||||
|         FileData = realloc(FileNode->FileData, (size_t)AllocationSize); |         FileData = realloc(FileNode->FileData, (size_t)AllocationSize); | ||||||
|         if (0 == FileData) |         if (0 == FileData && 0 != AllocationSize) | ||||||
|             return STATUS_INSUFFICIENT_RESOURCES; |             return STATUS_INSUFFICIENT_RESOURCES; | ||||||
|  |  | ||||||
|         FileNode->FileData = FileData; |         FileNode->FileData = FileData; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user