From f3255665ad9c3bca6ef4e9b52067a0730156d81d Mon Sep 17 00:00:00 2001 From: JustArchi Date: Mon, 14 Nov 2022 23:46:07 +0100 Subject: [PATCH] Update NativeMethods.cs --- ArchiSteamFarm/Core/NativeMethods.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/ArchiSteamFarm/Core/NativeMethods.cs b/ArchiSteamFarm/Core/NativeMethods.cs index 2912b4645..68086197e 100644 --- a/ArchiSteamFarm/Core/NativeMethods.cs +++ b/ArchiSteamFarm/Core/NativeMethods.cs @@ -35,14 +35,12 @@ internal static partial class NativeMethods { [SupportedOSPlatform("Windows")] internal const sbyte StandardInputHandle = -10; -#pragma warning disable CA2101 // False positive, we can't use unicode charset on Unix, and it uses UTF-8 by default anyway [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] [LibraryImport("libc", EntryPoint = "chmod", SetLastError = true, StringMarshalling = StringMarshalling.Utf8)] [SupportedOSPlatform("FreeBSD")] [SupportedOSPlatform("Linux")] [SupportedOSPlatform("MacOS")] internal static partial int Chmod(string path, int mode); -#pragma warning restore CA2101 // False positive, we can't use unicode charset on Unix, and it uses UTF-8 by default anyway [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] [LibraryImport("kernel32.dll")]