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

Commit cc452f8

Browse files
JamesWCChengJames ChengAArnott
authored
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 <[email protected]> Co-authored-by: Andrew Arnott <[email protected]>
1 parent e95629b commit cc452f8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Kernel32/Kernel32+CreateFileFlags.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public enum CreateFileFlags : uint
111111
/// in case, for file systems that support that naming. Use care when using this option, because files created with
112112
/// this flag may not be accessible by applications that are written for MS-DOS or 16-bit Windows.
113113
/// </summary>
114-
FILE_FLAG_POSIX_SEMANTICS = 0x0100000,
114+
FILE_FLAG_POSIX_SEMANTICS = 0x01000000,
115115

116116
/// <summary>
117117
/// Access is intended to be random. The system can use this as a hint to optimize file caching. This flag has no

src/Kernel32/PublicAPI.Shipped.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ PInvoke.Kernel32.CreateFileFlags.FILE_FLAG_NO_BUFFERING = 536870912 -> PInvoke.K
173173
PInvoke.Kernel32.CreateFileFlags.FILE_FLAG_OPEN_NO_RECALL = 1048576 -> PInvoke.Kernel32.CreateFileFlags
174174
PInvoke.Kernel32.CreateFileFlags.FILE_FLAG_OPEN_REPARSE_POINT = 2097152 -> PInvoke.Kernel32.CreateFileFlags
175175
PInvoke.Kernel32.CreateFileFlags.FILE_FLAG_OVERLAPPED = 1073741824 -> PInvoke.Kernel32.CreateFileFlags
176-
PInvoke.Kernel32.CreateFileFlags.FILE_FLAG_POSIX_SEMANTICS = 1048576 -> PInvoke.Kernel32.CreateFileFlags
176+
PInvoke.Kernel32.CreateFileFlags.FILE_FLAG_POSIX_SEMANTICS = 16777216 -> PInvoke.Kernel32.CreateFileFlags
177177
PInvoke.Kernel32.CreateFileFlags.FILE_FLAG_RANDOM_ACCESS = 268435456 -> PInvoke.Kernel32.CreateFileFlags
178178
PInvoke.Kernel32.CreateFileFlags.FILE_FLAG_SEQUENTIAL_SCAN = 134217728 -> PInvoke.Kernel32.CreateFileFlags
179179
PInvoke.Kernel32.CreateFileFlags.FILE_FLAG_SESSION_AWARE = 8388608 -> PInvoke.Kernel32.CreateFileFlags

0 commit comments

Comments
 (0)