Removed just a bit too much in r30927.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30932 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
c89b0ea4c2
commit
93aba444aa
@ -468,6 +468,11 @@ status_t
|
||||
OverlayInode::Read(void *_cookie, off_t position, void *buffer, size_t *length,
|
||||
bool readPages)
|
||||
{
|
||||
if (position >= fStat.st_size) {
|
||||
*length = 0;
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
uint8 *pointer = (uint8 *)buffer;
|
||||
write_buffer *element = fWriteBuffers;
|
||||
size_t bytesLeft = MIN(fStat.st_size - position, *length);
|
||||
|
Loading…
Reference in New Issue
Block a user