Skip to content

Commit

Permalink
fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Jan 9, 2025
1 parent 43b5723 commit 997c6ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tbox/platform/stdfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ tb_bool_t tb_stdfile_readable(tb_stdfile_ref_t self)
if (tb_kernel32()->PeekNamedPipe)
{
DWORD bytesAvailable = 0;
BOOL ok = tb_kernel32()->PeekNamedPipe(hStdin, NULL, NULL, NULL, &bytesAvailable, tb_null);
BOOL ok = tb_kernel32()->PeekNamedPipe(hStdin, tb_null, 0, tb_null, &bytesAvailable, tb_null);
return ok && bytesAvailable;
}
}
Expand Down

0 comments on commit 997c6ea

Please sign in to comment.