Applied Michael's patch for MessageUtils.h - this is supposed to fix some
crashing bugs with R5 message format conversion. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16762 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
a27ff91108
commit
ca69de45a8
@ -63,7 +63,7 @@ public:
|
||||
}
|
||||
|
||||
if (fError == 0)
|
||||
throw B_ERROR;
|
||||
fError = B_ERROR;
|
||||
throw fError;
|
||||
}
|
||||
|
||||
@ -71,11 +71,9 @@ public:
|
||||
inline void operator()(T data, size_t len)
|
||||
{
|
||||
fError = fStream->Read((void *)data, len);
|
||||
if (fError > B_OK)
|
||||
if (fError >= B_OK)
|
||||
return;
|
||||
|
||||
if (fError == 0)
|
||||
throw B_ERROR;
|
||||
throw fError;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user