From b10d6b203d103ea0335576dc8af1d1e1649fcf06 Mon Sep 17 00:00:00 2001 From: LRN Date: Sat, 4 Aug 2012 19:26:28 +0000 Subject: Better error reporting on W32 --- src/main/extractor_ipc_w32.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/extractor_ipc_w32.c b/src/main/extractor_ipc_w32.c index 69ceb1c..5c9947b 100644 --- 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]); -- cgit v1.2.3