mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 549668 - check that mozilla.widget.render-mode pref value is within valid range. r=vlad
This commit is contained in:
parent
4c4911bf50
commit
85144c835a
@ -164,7 +164,7 @@ gfxWindowsPlatform::gfxWindowsPlatform()
|
||||
|
||||
PRInt32 rmode;
|
||||
if (NS_SUCCEEDED(pref->GetIntPref("mozilla.widget.render-mode", &rmode))) {
|
||||
if (rmode >= 0 || rmode < RENDER_MODE_MAX) {
|
||||
if (rmode >= 0 && rmode < RENDER_MODE_MAX) {
|
||||
#ifndef CAIRO_HAS_DDRAW_SURFACE
|
||||
if (rmode == RENDER_DDRAW || rmode == RENDER_DDRAW_GL)
|
||||
rmode = RENDER_IMAGE_STRETCH24;
|
||||
|
Loading…
Reference in New Issue
Block a user