why not simply setting send_completion to cvalue instead of TRUE, and remove the now unneeded test to cvalue ? - send_completion = TRUE; + send_completion = cvalue != 0; .... - if (send_completion && cvalue) .... + if (send_completion) ....
A+
2010/6/21 Andrey Turkin andrey.turkin@gmail.com
Long overdue patch to fix bug 11188 - make sure to send i/o completions after all interactions with i/o status block are performed.
dlls/ntdll/file.c | 24 ++++++++++++++++++++---- 1 files changed, 20 insertions(+), 4 deletions(-)