diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Helper/ShellContextMenu.cs b/Plugins/Flow.Launcher.Plugin.Explorer/Helper/ShellContextMenu.cs
index 6e986fde3..3870c4876 100644
--- a/Plugins/Flow.Launcher.Plugin.Explorer/Helper/ShellContextMenu.cs
+++ b/Plugins/Flow.Launcher.Plugin.Explorer/Helper/ShellContextMenu.cs
@@ -103,12 +103,12 @@ namespace Peter
if (_oContextMenu != null &&
m.Msg == (int)WM.MENUSELECT &&
- (ShellHelper.HiWord(m.WParam) & (ulong)MFT.SEPARATOR) == 0 &&
- (ShellHelper.HiWord(m.WParam) & (ulong)MFT.POPUP) == 0)
+ (ShellHelper.HiWord(m.WParam) & (nint)MFT.SEPARATOR) == 0 &&
+ (ShellHelper.HiWord(m.WParam) & (nint)MFT.POPUP) == 0)
{
string info = string.Empty;
- if (ShellHelper.LoWord(m.WParam) == (int)CMD_CUSTOM.ExpandCollapse)
+ if (ShellHelper.LoWord(m.WParam) == (nint)CMD_CUSTOM.ExpandCollapse)
info = "Expands or collapses the current selected item";
else
{
@@ -1590,12 +1590,12 @@ namespace Peter
///
/// The pointer to the WParam
/// The unsigned integer for the High Word
- public static ulong HiWord(IntPtr ptr)
+ public static nint HiWord(IntPtr ptr)
{
- if (((ulong)ptr & 0x80000000) == 0x80000000)
- return ((ulong)ptr >> 16);
+ if (((nint)ptr & 0x80000000) == 0x80000000)
+ return ((nint)ptr >> 16);
else
- return (((ulong)ptr >> 16) & 0xffff);
+ return (((nint)ptr >> 16) & 0xffff);
}
///
@@ -1603,9 +1603,9 @@ namespace Peter
///
/// The pointer to the WParam
/// The unsigned integer for the Low Word
- public static ulong LoWord(IntPtr ptr)
+ public static nint LoWord(IntPtr ptr)
{
- return (ulong)ptr & 0xffff;
+ return (nint)ptr & 0xffff;
}
#endregion