mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 630465. Don't pretend everything is ok when allocating image surfaces failes. r=vlad, a=joe
This commit is contained in:
parent
24b712775f
commit
9fe041c03d
@ -1164,7 +1164,7 @@ nsCanvasRenderingContext2D::InitializeWithSurface(nsIDocShell *docShell, gfxASur
|
||||
// then the surface became cleared, and we need to redraw everything.
|
||||
Redraw();
|
||||
|
||||
return NS_OK;
|
||||
return mValid ? NS_OK : NS_ERROR_OUT_OF_MEMORY;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
Loading…
Reference in New Issue
Block a user