diff options
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Device.java')
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Device.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Device.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Device.java index 15a5532b5b..36f1ca1535 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Device.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Device.java @@ -142,7 +142,6 @@ protected void checkDevice () { void checkGDIP() { if (gdipToken != null) return; - int oldErrorMode = OS.SetErrorMode (OS.SEM_FAILCRITICALERRORS); try { int [] token = new int [1]; GdiplusStartupInput input = new GdiplusStartupInput (); @@ -152,9 +151,7 @@ void checkGDIP() { } } catch (Throwable t) { SWT.error (SWT.ERROR_NO_GRAPHICS_LIBRARY, t); - } finally { - OS.SetErrorMode (oldErrorMode); - } + } } /** |