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:
Michael Lotz 2009-09-03 05:41:53 +00:00
parent 230153f133
commit 98f77afdb7
1 changed files with 4 additions and 5 deletions

View File

@ -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;
}