diff --git a/PInvoke/Shell32/ShTypes.PIDL.cs b/PInvoke/Shell32/ShTypes.PIDL.cs index 61918688..8d89ba2b 100644 --- a/PInvoke/Shell32/ShTypes.PIDL.cs +++ b/PInvoke/Shell32/ShTypes.PIDL.cs @@ -144,7 +144,7 @@ namespace Vanara.PInvoke /// Child instance to test. /// If true, narrows test to immediate children only. /// true if this instance is a parent or ancestor of a supplied PIDL. - public bool IsParentOf(PIDL childPidl, bool immediate = true) => ILIsParent(this, childPidl, immediate); + public bool IsParentOf(PIDL childPidl, bool immediate = true) => ILIsParent((IntPtr)this, (IntPtr)childPidl, immediate); /// Removes the last identifier from the list. public bool RemoveLastId() => ILRemoveLastID(handle);