libextractor

GNU libextractor
Log | Files | Refs | Submodules | README | LICENSE

commit b10d6b203d103ea0335576dc8af1d1e1649fcf06
parent 9828a49040d8b3f336aa2dea5a9a9f0bde85e2ae
Author: LRN <lrn1986@gmail.com>
Date:   Sat,  4 Aug 2012 19:26:28 +0000

Better error reporting on W32

Diffstat:
Msrc/main/extractor_ipc_w32.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/main/extractor_ipc_w32.c b/src/main/extractor_ipc_w32.c @@ -736,6 +736,8 @@ EXTRACTOR_IPC_channel_recv_ (struct EXTRACTOR_Channel **channels, channels[i]->data, channels[i]->size + bytes_read, proc, proc_cls); if (!bresult || -1 == ret) { + DWORD error = GetLastError (); + SetErrnoFromWinError (error); if (!bresult) LOG_STRERROR ("ReadFile"); EXTRACTOR_IPC_channel_destroy_ (channels[i]);