mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1076910 - Add some error checks to gfxUtils::EncodeSourceSurface. r=Bas
This commit is contained in:
parent
07d0853822
commit
6ec5c9c594
@ -1184,6 +1184,8 @@ gfxUtils::EncodeSourceSurface(SourceSurface* aSurface,
|
||||
}
|
||||
}
|
||||
}
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
NS_ENSURE_TRUE(!imgData.empty(), NS_ERROR_FAILURE);
|
||||
|
||||
if (aBinaryOrData == eBinaryEncode) {
|
||||
if (aFile) {
|
||||
|
Loading…
Reference in New Issue
Block a user