fix up windows block_on_input()

pull/2166/head
nick black 3 years ago
parent 9e9a949f0f
commit 22f421657d
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -1089,7 +1089,7 @@ block_on_input(inputctx* ictx){
struct timespec* ts = NULL; // FIXME
#ifdef __MINGW64__
int timeoutms = ts ? ts->tv_sec * 1000 + ts->tv_nsec / 1000000 : -1;
DWORD d = WaitForMultipleObjects(1, &ti->inhandle, FALSE, timeoutms);
DWORD d = WaitForMultipleObjects(1, &ictx->stdinhandle, FALSE, timeoutms);
if(d == WAIT_TIMEOUT){
return 0;
}else if(d == WAIT_FAILED){

Loading…
Cancel
Save