File tree Expand file tree Collapse file tree 4 files changed +285
-28
lines changed Expand file tree Collapse file tree 4 files changed +285
-28
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ fn open_link_no_reparse(
95
95
ObjectName : & mut path_str,
96
96
RootDirectory : parent. as_raw_handle ( ) ,
97
97
Attributes : ATTRIBUTES . load ( Ordering :: Relaxed ) ,
98
- ..c:: OBJECT_ATTRIBUTES :: default ( )
98
+ ..c:: OBJECT_ATTRIBUTES :: with_length ( )
99
99
} ;
100
100
let share = c:: FILE_SHARE_DELETE | c:: FILE_SHARE_READ | c:: FILE_SHARE_WRITE ;
101
101
let options = c:: FILE_OPEN_REPARSE_POINT | options;
Original file line number Diff line number Diff line change @@ -44,8 +44,8 @@ impl UNICODE_STRING {
44
44
}
45
45
}
46
46
47
- impl Default for OBJECT_ATTRIBUTES {
48
- fn default ( ) -> Self {
47
+ impl OBJECT_ATTRIBUTES {
48
+ pub fn with_length ( ) -> Self {
49
49
Self {
50
50
Length : size_of :: < Self > ( ) as _ ,
51
51
RootDirectory : ptr:: null_mut ( ) ,
Original file line number Diff line number Diff line change 1
1
--out windows_sys.rs
2
2
--flat
3
3
--sys
4
- --no-core
4
+ --no-deps
5
+ --link windows_targets
5
6
--filter
6
7
!INVALID_HANDLE_VALUE
7
8
ABOVE_NORMAL_PRIORITY_CLASS
@@ -19,7 +20,6 @@ ALL_PROCESSOR_GROUPS
19
20
ARM64_NT_NEON128
20
21
BELOW_NORMAL_PRIORITY_CLASS
21
22
bind
22
- BOOL
23
23
BY_HANDLE_FILE_INFORMATION
24
24
CALLBACK_CHUNK_FINISHED
25
25
CALLBACK_STREAM_SWITCH
You can’t perform that action at this time.
0 commit comments