diff --git a/src/runtime/rt_aio.c b/src/runtime/rt_aio.c index a65baab..999a3b6 100644 --- a/src/runtime/rt_aio.c +++ b/src/runtime/rt_aio.c @@ -364,7 +364,7 @@ static void win32WriteBatchInner(const char *file_path, const rt_file_write *wri op->state = RT_AIO_STATE_FINISHED; *handle = RT_AIO_INVALID_HANDLE; CloseHandle(file_handle); - op->file_handle = INVALID_HANDLE; + op->file_handle = NULL; } /* Handle is the index into the ringbuffer + 1 */