block_on_input: pass HANDLE** #2402

This commit is contained in:
nick black 2021-12-02 02:02:01 -05:00
parent caaeec5094
commit cf36985c69

View File

@ -2047,7 +2047,7 @@ block_on_input(inputctx* ictx, unsigned* rtfd, unsigned* rifd){
#ifdef __MINGW64__ #ifdef __MINGW64__
int timeoutms = nonblock ? 0 : -1; int timeoutms = nonblock ? 0 : -1;
DWORD ncount = 0; DWORD ncount = 0;
const HANDLE* handles[2]; HANDLE handles[2];
if(!ictx->stdineof){ if(!ictx->stdineof){
if(ictx->ibufvalid != sizeof(ictx->ibuf)){ if(ictx->ibufvalid != sizeof(ictx->ibuf)){
handles[ncount++] = ictx->stdinhandle; handles[ncount++] = ictx->stdinhandle;