mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-15 12:55:07 +00:00
7048568: Crash in Java_sun_awt_Win32GraphicsEnvironment_isVistaOS
Reviewed-by: dcherepanov, art, amenkov
This commit is contained in:
parent
94891cacc0
commit
d735ee65ab
@ -673,6 +673,12 @@ LPMONITORINFO AwtWin32GraphicsDevice::GetMonitorInfo(int deviceIndex)
|
||||
*/
|
||||
void AwtWin32GraphicsDevice::ResetAllMonitorInfo()
|
||||
{
|
||||
//IE in some circumstances generates WM_SETTINGCHANGE message on appearance
|
||||
//and thus triggers this method
|
||||
//but we may not have the devices list initialized yet.
|
||||
if (!Devices::GetInstance()){
|
||||
return;
|
||||
}
|
||||
Devices::InstanceAccess devices;
|
||||
int devicesNum = devices->GetNumDevices();
|
||||
for (int deviceIndex = 0; deviceIndex < devicesNum; deviceIndex++) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user