Skip to content

Commit 2ae0d75

Browse files
yaira20x5bfa
andauthored
Update src/Files.App/Actions/Open/OpenClassicPropertiesAction.cs
Co-authored-by: 0x5BFA <62196528+0x5bfa@users.noreply.github.com>
1 parent 34979d8 commit 2ae0d75

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Files.App/Actions/Open/OpenClassicPropertiesAction.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ private unsafe void ExecuteShellCommand(string itemPath)
5454
{
5555
SHELLEXECUTEINFOW info = default;
5656
info.cbSize = (uint)Marshal.SizeOf(info);
57+
info.nShow = 5; // SW_SHOW
58+
info.fMask = 0x0000000C;
5759

5860
var verb = "properties";
5961
fixed (char* cVerb = verb)
@@ -62,9 +64,6 @@ private unsafe void ExecuteShellCommand(string itemPath)
6264
fixed (char* lpFile = itemPath)
6365
info.lpFile = lpFile;
6466

65-
info.nShow = 5; // SW_SHOW
66-
info.fMask = 0x0000000C;
67-
6867
PInvoke.ShellExecuteEx(ref info);
6968
}
7069

0 commit comments

Comments
 (0)