Fix excessive file sizes for Storage files

Troy Rollo wine at troy.rollo.name
Mon May 22 20:42:25 CDT 2006


ChangeLog:
	The IStorage (DocFile) implementation was adding empty blocks at the end of
	the file every time a caller wrote data that was not a multiple of 512 bytes.
	If the caller made a lot of very small writes the file size could be huge
	even though the data in the file was tiny. This was caused by
	BlockChainStream_SetSize trying to allocate file blocks for the new data
	using a condition that bore no relationship to the required condition, and it
	was not necessary to do so at that time since it is done (the right way) by
	StorageImpl_GetNextFreeBigBlock (called via BlockChainStream_Enlarge).
-- 
Troy Rollo - wine at troy.rollo.name
-------------- next part --------------
A non-text attachment was scrubbed...
Name: storage.diff
Type: text/x-diff
Size: 783 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20060523/3d95db00/storage-0001.diff


More information about the wine-patches mailing list