From 2efb29ab4b06067200570408ab01a1f724b52886 Mon Sep 17 00:00:00 2001 From: Hugh Bellamy Date: Tue, 5 May 2020 16:03:36 +0100 Subject: [PATCH] Remove invalid debug assert in GetSystemMetricsForDpi --- .../src/Interop/User32/Interop.GetSystemMetrics.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/System.Windows.Forms.Primitives/src/Interop/User32/Interop.GetSystemMetrics.cs b/src/System.Windows.Forms.Primitives/src/Interop/User32/Interop.GetSystemMetrics.cs index 8493a2bf6eb..db67f10b288 100644 --- a/src/System.Windows.Forms.Primitives/src/Interop/User32/Interop.GetSystemMetrics.cs +++ b/src/System.Windows.Forms.Primitives/src/Interop/User32/Interop.GetSystemMetrics.cs @@ -112,7 +112,6 @@ public static int GetCurrentSystemMetrics(SystemMetric nIndex, uint dpi) } else { - Debug.Fail("GetSystemMetricsForDpi() is not available on this OS"); return GetSystemMetrics(nIndex); } }