fix(safeio): pass valid NT file attributes
This commit is contained in:
@@ -203,7 +203,11 @@ func openWindowsRelativeObjectWithShareMode(
|
|||||||
attributes,
|
attributes,
|
||||||
&status,
|
&status,
|
||||||
&allocationSize,
|
&allocationSize,
|
||||||
windows.FILE_ATTRIBUTE_NORMAL,
|
// NtCreateFile expects zero here for the retained open/create contract. The
|
||||||
|
// Win32 FILE_ATTRIBUTE_NORMAL flag is not a valid NT FileAttributes value
|
||||||
|
// for this RootDirectory-relative call and produces STATUS_INVALID_PARAMETER
|
||||||
|
// on the Windows runner.
|
||||||
|
0,
|
||||||
shareMode,
|
shareMode,
|
||||||
disposition,
|
disposition,
|
||||||
options,
|
options,
|
||||||
|
|||||||
Reference in New Issue
Block a user