From 5400f9a0b4974e8cecb2db3fdfddaed204bb90e6 Mon Sep 17 00:00:00 2001 From: Leilei Zhang Date: Fri, 23 May 2025 11:55:59 +0800 Subject: [PATCH] fix spelling --- .github/actions/spell-check/expect.txt | 2 +- .../cmdpal/ext/Microsoft.CmdPal.Ext.Apps/Programs/UWP.cs | 4 ++-- .../ext/Microsoft.CmdPal.Ext.Apps/Utils/ShellLinkHelper.cs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/actions/spell-check/expect.txt b/.github/actions/spell-check/expect.txt index 2e6f645ab7..74757f79dc 100644 --- a/.github/actions/spell-check/expect.txt +++ b/.github/actions/spell-check/expect.txt @@ -1589,7 +1589,7 @@ steamapps STGC STGM STGMEDIUM -sTGM_READ +STGMREAD STICKYKEYS sticpl storelogo diff --git a/src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.Apps/Programs/UWP.cs b/src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.Apps/Programs/UWP.cs index a77ad90751..d11fea2e8f 100644 --- a/src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.Apps/Programs/UWP.cs +++ b/src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.Apps/Programs/UWP.cs @@ -63,12 +63,12 @@ public partial class UWP InitPackageVersion(namespaces); const uint noAttribute = 0x80; - const uint sTGM_READ = 0x00000000; + const uint STGMREAD = 0x00000000; IStream* stream = null; try { - PInvoke.SHCreateStreamOnFileEx(path, sTGM_READ, noAttribute, false, null, &stream).ThrowOnFailure(); + PInvoke.SHCreateStreamOnFileEx(path, STGMREAD, noAttribute, false, null, &stream).ThrowOnFailure(); Apps = AppxPackageHelper.GetAppsFromManifest(stream).Select(appInManifest => new UWPApplication((IAppxManifestApplication*)appInManifest, this)).Where(a => { var valid = diff --git a/src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.Apps/Utils/ShellLinkHelper.cs b/src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.Apps/Utils/ShellLinkHelper.cs index 34f7029946..614c3f988d 100644 --- a/src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.Apps/Utils/ShellLinkHelper.cs +++ b/src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.Apps/Utils/ShellLinkHelper.cs @@ -33,7 +33,7 @@ public class ShellLinkHelper : IShellLinkHelper { PInvoke.CoCreateInstance(typeof(ShellLink).GUID, null, CLSCTX.CLSCTX_INPROC_SERVER, out link).ThrowOnFailure(); - const int STGM_READ = 0; + const int STGMREAD = 0; IPersistFile* persistFile = null; Guid iid = typeof(IPersistFile).GUID; @@ -42,7 +42,7 @@ public class ShellLinkHelper : IShellLinkHelper { try { - persistFile->Load(path, STGM_READ); + persistFile->Load(path, STGMREAD); } catch (System.IO.FileNotFoundException) {