fix spelling

This commit is contained in:
Leilei Zhang
2025-05-23 11:55:59 +08:00
parent dc90f326f8
commit 5400f9a0b4
3 changed files with 5 additions and 5 deletions

View File

@@ -1589,7 +1589,7 @@ steamapps
STGC
STGM
STGMEDIUM
sTGM_READ
STGMREAD
STICKYKEYS
sticpl
storelogo

View File

@@ -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 =

View File

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