mirror of
https://github.com/winfsp/winfsp.git
synced 2025-06-08 04:52:10 -05:00
Merge pull request #219 from dworkin/read-4g-corruption
Fix read corruption issue.
This commit is contained in:
commit
ad866631b6
@ -57,6 +57,7 @@ CONTRIBUTOR LIST
|
||||
|Ben Rubson |ben.rubson at gmail.com
|
||||
|Bill Zissimopoulos |billziss at navimatics.com
|
||||
|Colin Atkinson (Atakama, https://atakama.com) |colin at atakama.com
|
||||
|Felix Croes |felix at dworkin.nl
|
||||
|Francois Karam (KS2, http://www.ks2.fr) |francois.karam at ks2.fr
|
||||
|Fritz Elfert |fritz-github at fritz-elfert.de
|
||||
|John Oberschelp |john at oberschelp.net
|
||||
|
@ -150,7 +150,7 @@ static NTSTATUS FspFsvolReadCached(
|
||||
FspFileNodeRelease(FileNode, Main);
|
||||
return STATUS_END_OF_FILE;
|
||||
}
|
||||
if (ReadLength > (ULONG)(FileInfo.FileSize - ReadOffset.QuadPart))
|
||||
if ((UINT64)ReadLength > FileInfo.FileSize - ReadOffset.QuadPart)
|
||||
ReadLength = (ULONG)(FileInfo.FileSize - ReadOffset.QuadPart);
|
||||
|
||||
/* initialize cache if not already initialized! */
|
||||
|
Loading…
x
Reference in New Issue
Block a user