use xhdierror() to map xhdi errors.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23616 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
3bf72d1955
commit
c4c5cd4d4a
@ -899,7 +899,7 @@ XHDIDrive::ReadBlocks(void *buffer, off_t first, int32 count)
|
||||
TRACE(("XHDIDrive::%s(%Ld, %d) (%d,%d)\n", __FUNCTION__, first, count, fMajor, fMinor));
|
||||
ret = XHReadWrite(fMajor, fMinor, flags, (uint32)first, (uint16)count, buffer);
|
||||
if (ret < 0)
|
||||
return toserror(ret);
|
||||
return xhdierror(ret);
|
||||
//TRACE(("XHReadWrite: %ld\n", ret));
|
||||
/*
|
||||
uint8 *b = (uint8 *)buffer;
|
||||
|
Loading…
Reference in New Issue
Block a user