mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Exception handling https://github.com/seerge/g-helper/issues/3029
This commit is contained in:
@@ -16,7 +16,10 @@ namespace GHelper.Display
|
||||
var modes = new DISPLAYCONFIG_MODE_INFO[modeCount];
|
||||
err = QueryDisplayConfig(QDC.QDC_ONLY_ACTIVE_PATHS, ref pathCount, paths, ref modeCount, modes, IntPtr.Zero);
|
||||
if (err != 0)
|
||||
throw new Win32Exception(err);
|
||||
{
|
||||
Logger.WriteLine("HDR Detection Error: " + new Win32Exception(err).Message);
|
||||
return false;
|
||||
}
|
||||
|
||||
string internalName = AppConfig.GetString("internal_display");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user