mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-16 01:41:18 -10:00
Avoid crash for use of deprecated InstallTrackingHandler in Snow Leopard.
This commit is contained in:
1 parent
224ad766ef
commit
3a7d8b3a72
1 file changed
+5
-1
@@ -50,7 +50,11 @@ namespace System.Windows.Forms.CarbonInternal {
|
||||
private static DragTrackingDelegate DragTrackingHandler = new DragTrackingDelegate (TrackingCallback);
|
||||
|
||||
static Dnd () {
|
||||
InstallTrackingHandler (DragTrackingHandler, IntPtr.Zero, IntPtr.Zero);
|
||||
try {
|
||||
InstallTrackingHandler (DragTrackingHandler, IntPtr.Zero, IntPtr.Zero);
|
||||
} catch (EntryPointNotFoundException) {
|
||||
// it is deprecated in 10.6 and does not exist anymore.
|
||||
}
|
||||
}
|
||||
|
||||
internal Dnd () {
|
||||
|
||||
Reference in new issue
Block a user