@@ -18,15 +18,10 @@ use std::{
18
18
} ,
19
19
} ;
20
20
use winapi:: {
21
- shared:: { minwindef:: TRUE , winerror :: ERROR_INSUFFICIENT_BUFFER } ,
21
+ shared:: minwindef:: TRUE ,
22
22
um:: {
23
- errhandlingapi:: GetLastError ,
24
23
handleapi:: INVALID_HANDLE_VALUE ,
25
- minwinbase:: SECURITY_ATTRIBUTES ,
26
- processthreadsapi:: {
27
- CreateProcessW , DeleteProcThreadAttributeList , InitializeProcThreadAttributeList ,
28
- PROCESS_INFORMATION , PROC_THREAD_ATTRIBUTE_LIST ,
29
- } ,
24
+ processthreadsapi:: { CreateProcessW , PROCESS_INFORMATION } ,
30
25
winbase:: {
31
26
CreateFileMappingA , CREATE_UNICODE_ENVIRONMENT , EXTENDED_STARTUPINFO_PRESENT ,
32
27
STARTF_USESTDHANDLES , STARTUPINFOEXW ,
@@ -162,7 +157,7 @@ pub(in crate::windows) fn spawn(
162
157
163
158
security_capabilities = sandbox. profile . get_security_capabilities ( ) ;
164
159
165
- proc_thread_attr_list. add_attr (
160
+ proc_thread_attr_list. add_attr :: < SECURITY_CAPABILITIES > (
166
161
MAGIC_PROC_THREAD_ATTRIBUTE_SECURITY_CAPABILITIES ,
167
162
& mut security_capabilities,
168
163
) ?;
0 commit comments