ci: vfmt vlib/os/process_windows.c.v and vlib/os/os.c.v

This commit is contained in:
Delyan Angelov 2023-10-16 01:48:35 +03:00
parent f54f156d25
commit eb82a72012
No known key found for this signature in database
GPG key ID: 66886C0F12D595ED
2 changed files with 4 additions and 3 deletions

View file

@ -554,7 +554,8 @@ pub fn get_raw_line() string {
h_input := C.GetStdHandle(C.STD_INPUT_HANDLE)
mut bytes_read := u32(0)
if is_atty(0) > 0 {
x := C.ReadConsole(h_input, buf, max_line_chars * 2, voidptr(&bytes_read), 0)
x := C.ReadConsole(h_input, buf, max_line_chars * 2, voidptr(&bytes_read),
0)
if !x {
return tos(buf, 0)
}

View file

@ -123,8 +123,8 @@ fn (mut p Process) win_spawn_process() int {
to_be_freed << work_folder_ptr
}
create_process_ok := C.CreateProcessW(0, voidptr(&wdata.command_line[0]), 0, 0, C.TRUE, creation_flags,
0, work_folder_ptr, voidptr(&start_info), voidptr(&wdata.proc_info))
create_process_ok := C.CreateProcessW(0, voidptr(&wdata.command_line[0]), 0, 0, C.TRUE,
creation_flags, 0, work_folder_ptr, voidptr(&start_info), voidptr(&wdata.proc_info))
failed_cfn_report_error(create_process_ok, 'CreateProcess')
if p.use_stdio_ctl {
close_valid_handle(&wdata.child_stdout_write)