Skip to content

Commit

Permalink
ci: vfmt vlib/os/process_windows.c.v and vlib/os/os.c.v
Browse files Browse the repository at this point in the history
  • Loading branch information
spytheman committed Oct 15, 2023
1 parent f54f156 commit eb82a72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion vlib/os/os.c.v
Expand Up @@ -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)
}
Expand Down
4 changes: 2 additions & 2 deletions vlib/os/process_windows.c.v
Expand Up @@ -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)
Expand Down

0 comments on commit eb82a72

Please sign in to comment.