mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 772890 - Guard against ArrayIndexOutOfBoundsException in GfxInfoThread. r=bjacob
This commit is contained in:
parent
adb88262d7
commit
b48cafa3c6
@ -90,6 +90,11 @@ public class GfxInfoThread extends Thread {
|
|||||||
|
|
||||||
// get the first config
|
// get the first config
|
||||||
int numConfigs = returnedNumberOfConfigs[0];
|
int numConfigs = returnedNumberOfConfigs[0];
|
||||||
|
if (numConfigs == 0) {
|
||||||
|
error("eglChooseConfig returned zero configs");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
EGLConfig[] returnedConfigs = new EGLConfig[numConfigs];
|
EGLConfig[] returnedConfigs = new EGLConfig[numConfigs];
|
||||||
if (!egl.eglChooseConfig(eglDisplay,
|
if (!egl.eglChooseConfig(eglDisplay,
|
||||||
configAttribs,
|
configAttribs,
|
||||||
|
Loading…
Reference in New Issue
Block a user