Skip to content
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.

Commit

Permalink
Fix wrong value of FILE_FLAG_POSIX_SEMANTICS in Kernel32+CreateFileFl…
Browse files Browse the repository at this point in the history
…ags.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 <[email protected]>
Co-authored-by: Andrew Arnott <[email protected]>
  • Loading branch information
3 people authored Jun 30, 2022
1 parent e95629b commit cc452f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Kernel32/Kernel32+CreateFileFlags.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
/// </summary>
FILE_FLAG_POSIX_SEMANTICS = 0x0100000,
FILE_FLAG_POSIX_SEMANTICS = 0x01000000,

/// <summary>
/// Access is intended to be random. The system can use this as a hint to optimize file caching. This flag has no
Expand Down
2 changes: 1 addition & 1 deletion src/Kernel32/PublicAPI.Shipped.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cc452f8

Please sign in to comment.