We need to notify the request also in the error case.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32915 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
230153f133
commit
98f77afdb7
|
@ -751,12 +751,11 @@ OverlayInode::SynchronousIO(void *cookie, IORequest *request)
|
|||
else
|
||||
result = Read(cookie, request->Offset(), NULL, &length, false, request);
|
||||
|
||||
if (result != B_OK)
|
||||
return result;
|
||||
if (result == B_OK)
|
||||
request->SetTransferredBytes(false, length);
|
||||
|
||||
request->SetTransferredBytes(false, length);
|
||||
request->SetStatusAndNotify(B_OK);
|
||||
return B_OK;
|
||||
request->SetStatusAndNotify(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue