From 529c7165d52f0627049baa7b04ee4e5badace434 Mon Sep 17 00:00:00 2001 From: 0x5BFA <62196528+0x5bfa@users.noreply.github.com> Date: Thu, 10 Oct 2024 15:59:16 +0900 Subject: [PATCH] Update OpenClassicPropertiesAction.cs --- .../Actions/Open/OpenClassicPropertiesAction.cs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/Files.App/Actions/Open/OpenClassicPropertiesAction.cs b/src/Files.App/Actions/Open/OpenClassicPropertiesAction.cs index 686c10ec8890..7dbd496567a2 100644 --- a/src/Files.App/Actions/Open/OpenClassicPropertiesAction.cs +++ b/src/Files.App/Actions/Open/OpenClassicPropertiesAction.cs @@ -50,16 +50,15 @@ private unsafe void ExecuteShellCommand(string itemPath) SHELLEXECUTEINFOW info = default; info.cbSize = (uint)Marshal.SizeOf(info); info.nShow = 5; // SW_SHOW - info.fMask = 0x0000000C; + info.fMask = 0x0000000C; // SEE_MASK_INVOKEIDLIST - var verb = "properties"; - fixed (char* cVerb = verb) + fixed (char* cVerb = "properties", lpFile = itemPath) + { info.lpVerb = cVerb; - - fixed (char* lpFile = itemPath) info.lpFile = lpFile; - PInvoke.ShellExecuteEx(ref info); + PInvoke.ShellExecuteEx(ref info); + } } private void Context_PropertyChanged(object? sender, PropertyChangedEventArgs e)