mirror of
https://github.com/ckaczor/wpf-notifyicon.git
synced 2026-01-29 17:26:24 -05:00
git-svn-id: https://svn.evolvesoftware.ch/repos/evolve.net/WPF/NotifyIcon@170 9f600761-6f11-4665-b6dc-0185e9171623
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Diagnostics;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Hardcodet.Wpf.TaskbarNotification.Interop
|
||||
{
|
||||
@@ -190,7 +191,11 @@ namespace Hardcodet.Wpf.TaskbarNotification.Interop
|
||||
|
||||
if (MessageWindowHandle == IntPtr.Zero)
|
||||
{
|
||||
#if SILVERLIGHT
|
||||
throw new Exception("Message window handle was not a valid pointer.");
|
||||
#else
|
||||
throw new Win32Exception();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user