Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added exception handling to native windows functions

  • Loading branch information...
commit fd73a658d2c912a796807d5fe013ec745e0a20ca 1 parent 0156a1a
@seuffert authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 XBSlink/xbs_system_functions.cs
View
8 XBSlink/xbs_system_functions.cs
@@ -40,6 +40,9 @@ public static void PreventSystemFromSleeping()
catch (DllNotFoundException dnte)
{
}
+ catch (EntryPointNotFoundException enfe)
+ {
+ }
}
public static void restoreSystemSleepState()
@@ -50,7 +53,10 @@ public static void restoreSystemSleepState()
}
catch (DllNotFoundException dnte)
{
- }
+ }
+ catch (EntryPointNotFoundException enfe)
+ {
+ }
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.