mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset 6d7a8e19086c (bug 1211262) for wError build bustage CLOSED TREE
This commit is contained in:
parent
a8d1e2c8cc
commit
c5f64af322
@ -841,10 +841,8 @@ MOZ_WIN_MEM_TRY_BEGIN
|
|||||||
// -- check if there is enough source data in the file
|
// -- check if there is enough source data in the file
|
||||||
if (!offset ||
|
if (!offset ||
|
||||||
mFd->mLen < aItem->Size() ||
|
mFd->mLen < aItem->Size() ||
|
||||||
offset > mFd->mLen - aItem->Size() ||
|
offset > mFd->mLen - aItem->Size())
|
||||||
aItem->Compression() == STORED && aItem->Size() != aItem->RealSize()) {
|
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
|
||||||
|
|
||||||
return mFd->mFileData + offset;
|
return mFd->mFileData + offset;
|
||||||
MOZ_WIN_MEM_TRY_CATCH(return nullptr)
|
MOZ_WIN_MEM_TRY_CATCH(return nullptr)
|
||||||
|
Loading…
Reference in New Issue
Block a user