From cc452f8f1d9437827b8181b06a153c6fd5997d08 Mon Sep 17 00:00:00 2001 From: James Cheng Date: Thu, 30 Jun 2022 21:13:45 +0800 Subject: [PATCH] Fix wrong value of FILE_FLAG_POSIX_SEMANTICS in Kernel32+CreateFileFlags.cs (#581) * Fix wrong value of FILE_FLAG_POSIX_SEMANTICS in Kernel32+CreateFileFlags.cs FILE_FLAG_POSIX_SEMANTICS is 0x01000000 by MSDN https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfilea#parameters Value was incorrect FILE_FLAG_POSIX_SEMANTICS = 0x0100000. * Fix PublicAPI Co-authored-by: James Cheng Co-authored-by: Andrew Arnott --- src/Kernel32/Kernel32+CreateFileFlags.cs | 2 +- src/Kernel32/PublicAPI.Shipped.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Kernel32/Kernel32+CreateFileFlags.cs b/src/Kernel32/Kernel32+CreateFileFlags.cs index 969586f5..5f2f6846 100644 --- a/src/Kernel32/Kernel32+CreateFileFlags.cs +++ b/src/Kernel32/Kernel32+CreateFileFlags.cs @@ -111,7 +111,7 @@ public enum CreateFileFlags : uint /// in case, for file systems that support that naming. Use care when using this option, because files created with /// this flag may not be accessible by applications that are written for MS-DOS or 16-bit Windows. /// - FILE_FLAG_POSIX_SEMANTICS = 0x0100000, + FILE_FLAG_POSIX_SEMANTICS = 0x01000000, /// /// Access is intended to be random. The system can use this as a hint to optimize file caching. This flag has no diff --git a/src/Kernel32/PublicAPI.Shipped.txt b/src/Kernel32/PublicAPI.Shipped.txt index b4eaec22..3e5b0f91 100644 --- a/src/Kernel32/PublicAPI.Shipped.txt +++ b/src/Kernel32/PublicAPI.Shipped.txt @@ -173,7 +173,7 @@ PInvoke.Kernel32.CreateFileFlags.FILE_FLAG_NO_BUFFERING = 536870912 -> PInvoke.K PInvoke.Kernel32.CreateFileFlags.FILE_FLAG_OPEN_NO_RECALL = 1048576 -> PInvoke.Kernel32.CreateFileFlags PInvoke.Kernel32.CreateFileFlags.FILE_FLAG_OPEN_REPARSE_POINT = 2097152 -> PInvoke.Kernel32.CreateFileFlags PInvoke.Kernel32.CreateFileFlags.FILE_FLAG_OVERLAPPED = 1073741824 -> PInvoke.Kernel32.CreateFileFlags -PInvoke.Kernel32.CreateFileFlags.FILE_FLAG_POSIX_SEMANTICS = 1048576 -> PInvoke.Kernel32.CreateFileFlags +PInvoke.Kernel32.CreateFileFlags.FILE_FLAG_POSIX_SEMANTICS = 16777216 -> PInvoke.Kernel32.CreateFileFlags PInvoke.Kernel32.CreateFileFlags.FILE_FLAG_RANDOM_ACCESS = 268435456 -> PInvoke.Kernel32.CreateFileFlags PInvoke.Kernel32.CreateFileFlags.FILE_FLAG_SEQUENTIAL_SCAN = 134217728 -> PInvoke.Kernel32.CreateFileFlags PInvoke.Kernel32.CreateFileFlags.FILE_FLAG_SESSION_AWARE = 8388608 -> PInvoke.Kernel32.CreateFileFlags