Jinoh Kang (@iamahuman) commented about dlls/ntdll/tests/pipe.c:
Sleep(100); memset(&iosb, 0x55, sizeof(iosb)); res = pNtCancelSynchronousIoFile(thread, NULL, &iosb);
- todo_wine { ok(res == STATUS_SUCCESS, "Failed to cancel I/O\n"); ok(U(iosb).Status == STATUS_SUCCESS, "iosb.Status got changed to %lx\n", U(iosb).Status); ok(U(iosb).Information == 0, "iosb.Information got changed to %Iu\n", U(iosb).Information);
- CloseHandle(ctx.pipe); WaitForSingleObject(thread, INFINITE); CloseHandle(thread);
- CloseHandle(ctx.pipe);
Any reason why the call to `CloseHandle` is being moved?