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:
Ryan Leavengood
2011-03-04 03:21:53 +00:00
parent 2cfa3e7a04
commit 8a99b1dc31
+1 -1
View File
@@ -76,7 +76,7 @@ class TReadHelper {
operator()(T &data)
{
fError = fStream.Read((void *)&data, sizeof(T));
if (fError > B_OK) {
if (fError >= B_OK) {
if (IsSwapping())
byte_swap(data);
return;