w32: Log all errors from CloseHandle and WFSO in w32-io.
authorWerner Koch <wk@gnupg.org>
Fri, 2 Nov 2018 11:28:17 +0000 (12:28 +0100)
committerWerner Koch <wk@gnupg.org>
Fri, 2 Nov 2018 11:28:17 +0000 (12:28 +0100)
commited3f5ad760a28566fa2571e0c7392467bfc3770d
tree67dad1dea1b53db4a6141d3730edfd4642ccf67c
parent4faa0ccf58c7a0f64f51dcbc8466add660080414
w32: Log all errors from CloseHandle and WFSO in w32-io.

* src/w32-io.c (close_handle, _close_handle): New macro and function;
use in place of all CloseHandle calls.
(wait_for_single_object, _wait_for_single_object): Likewise.

Signed-off-by: Werner Koch <wk@gnupg.org>
src/w32-io.c