mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
ci: vfmt vlib/os/process_windows.c.v and vlib/os/os.c.v
This commit is contained in:
parent
f54f156d25
commit
eb82a72012
2 changed files with 4 additions and 3 deletions
|
@ -554,7 +554,8 @@ pub fn get_raw_line() string {
|
||||||
h_input := C.GetStdHandle(C.STD_INPUT_HANDLE)
|
h_input := C.GetStdHandle(C.STD_INPUT_HANDLE)
|
||||||
mut bytes_read := u32(0)
|
mut bytes_read := u32(0)
|
||||||
if is_atty(0) > 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 {
|
if !x {
|
||||||
return tos(buf, 0)
|
return tos(buf, 0)
|
||||||
}
|
}
|
||||||
|
|
|
@ -123,8 +123,8 @@ fn (mut p Process) win_spawn_process() int {
|
||||||
to_be_freed << work_folder_ptr
|
to_be_freed << work_folder_ptr
|
||||||
}
|
}
|
||||||
|
|
||||||
create_process_ok := C.CreateProcessW(0, voidptr(&wdata.command_line[0]), 0, 0, C.TRUE, creation_flags,
|
create_process_ok := C.CreateProcessW(0, voidptr(&wdata.command_line[0]), 0, 0, C.TRUE,
|
||||||
0, work_folder_ptr, voidptr(&start_info), voidptr(&wdata.proc_info))
|
creation_flags, 0, work_folder_ptr, voidptr(&start_info), voidptr(&wdata.proc_info))
|
||||||
failed_cfn_report_error(create_process_ok, 'CreateProcess')
|
failed_cfn_report_error(create_process_ok, 'CreateProcess')
|
||||||
if p.use_stdio_ctl {
|
if p.use_stdio_ctl {
|
||||||
close_valid_handle(&wdata.child_stdout_write)
|
close_valid_handle(&wdata.child_stdout_write)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue