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) {