Skip to content

Commit b57fcb2

Browse files
committed
Minor
1 parent df3bc56 commit b57fcb2

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

RunAsPleb/Program.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ private static bool TryLaunchWithExplorerToken(string targetFilePath, string tar
199199
private static unsafe (string target, string arguments, string workingDirectory) ResolveShortcut(string lnkPath)
200200
{
201201
IShellLinkW shellLink = ShellLink.CreateInstance<IShellLinkW>();
202+
// ReSharper disable once SuspiciousTypeConversion.Global
202203
((IPersistFile)shellLink).Load(lnkPath, 0);
203204

204205
char* targetBuffer = stackalloc char[260];
@@ -217,6 +218,7 @@ private static unsafe (string target, string arguments, string workingDirectory)
217218

218219
private static unsafe string GetArguments(IShellLinkW shellLink)
219220
{
221+
// ReSharper disable once SuspiciousTypeConversion.Global
220222
IPropertyStore store = (IPropertyStore)shellLink;
221223
store.GetValue(PInvoke.PKEY_Link_Arguments, out PROPVARIANT prop);
222224
try

RunAsPleb/RunAsPleb.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
1616
<Deterministic>true</Deterministic>
1717
<CETCompat>false</CETCompat>
18+
<WarningsNotAsErrors>NU1900</WarningsNotAsErrors>
1819

1920
<OutputType>WinExe</OutputType>
2021
<TargetFramework>net10.0-windows</TargetFramework>
@@ -34,7 +35,7 @@
3435
</PropertyGroup>
3536

3637
<ItemGroup>
37-
<PackageReference Include="Microsoft.Windows.CsWin32" Version="0.3.275">
38+
<PackageReference Include="Microsoft.Windows.CsWin32" Version="0.3.296">
3839
<PrivateAssets>all</PrivateAssets>
3940
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
4041
</PackageReference>

RunAsPleb/packages.lock.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
},
1717
"Microsoft.Windows.CsWin32": {
1818
"type": "Direct",
19-
"requested": "[0.3.275, )",
20-
"resolved": "0.3.275",
21-
"contentHash": "PzFiVQdVxDY+iTX9U2K3IPVy4uvouZLDDsfRw5G+apVAcMGEeNlIqa/XLGu9xyGgysbwTulWsvlHHL4dX9aIQw==",
19+
"requested": "[0.3.296, )",
20+
"resolved": "0.3.296",
21+
"contentHash": "//7UtrKaAMEnUEuoKJyE5CMlswUa9qwoE6Hevn7ZST1gN7H0h2xQgUE2lhYkA5v6Va65lTzQasKoYBaRSo2UgA==",
2222
"dependencies": {
2323
"Microsoft.Windows.SDK.Win32Docs": "0.1.42-alpha",
2424
"Microsoft.Windows.SDK.Win32Metadata": "70.0.11-preview",

0 commit comments

Comments
 (0)