diff options
author | jfrijters <jfrijters> | 2011-01-20 08:39:49 +0300 |
---|---|---|
committer | jfrijters <jfrijters> | 2011-01-20 08:39:49 +0300 |
commit | 127273a1c1d54348f5d259cca1bbab455fd0c2e6 (patch) | |
tree | 024dbedf46de3704d2048cefbbbdaece029a117e /awt | |
parent | d7848c305e3b311be32effeeb1a23f7d25875219 (diff) |
Fix bogus IntPtr == null check.
Diffstat (limited to 'awt')
-rw-r--r-- | awt/native.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/awt/native.cs b/awt/native.cs index e342c2b8..41be3473 100644 --- a/awt/native.cs +++ b/awt/native.cs @@ -448,7 +448,7 @@ namespace IKVM.NativeCode.sun.awt.shell [System.Security.SecurityCritical] public static IntPtr getNextPIDLEntry(IntPtr pIDL) { - if (pIDL == null) + if (pIDL == IntPtr.Zero) { return IntPtr.Zero; } @@ -476,7 +476,7 @@ namespace IKVM.NativeCode.sun.awt.shell [System.Security.SecurityCritical] public static IntPtr copyFirstPIDLEntry(IntPtr pIDL) { - if (pIDL == null) + if (pIDL == IntPtr.Zero) { return IntPtr.Zero; } |