Apply patch from stimut to avoid a C++ exception in the JPEGTranslator.
Should fix the remaining issue on #6975. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40800 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -76,7 +76,7 @@ class TReadHelper {
|
|||||||
operator()(T &data)
|
operator()(T &data)
|
||||||
{
|
{
|
||||||
fError = fStream.Read((void *)&data, sizeof(T));
|
fError = fStream.Read((void *)&data, sizeof(T));
|
||||||
if (fError > B_OK) {
|
if (fError >= B_OK) {
|
||||||
if (IsSwapping())
|
if (IsSwapping())
|
||||||
byte_swap(data);
|
byte_swap(data);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user