diff options
author | LRN <lrn1986@gmail.com> | 2012-08-04 19:26:28 +0000 |
---|---|---|
committer | LRN <lrn1986@gmail.com> | 2012-08-04 19:26:28 +0000 |
commit | b10d6b203d103ea0335576dc8af1d1e1649fcf06 (patch) | |
tree | c8ceae2c9486b777c667b9cb7f0b065969db57cb | |
parent | 9828a49040d8b3f336aa2dea5a9a9f0bde85e2ae (diff) | |
download | libextractor-b10d6b203d103ea0335576dc8af1d1e1649fcf06.tar.gz libextractor-b10d6b203d103ea0335576dc8af1d1e1649fcf06.zip |
Better error reporting on W32
-rw-r--r-- | src/main/extractor_ipc_w32.c | 2 |
1 files changed, 2 insertions, 0 deletions
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, | |||
736 | channels[i]->data, channels[i]->size + bytes_read, proc, proc_cls); | 736 | channels[i]->data, channels[i]->size + bytes_read, proc, proc_cls); |
737 | if (!bresult || -1 == ret) | 737 | if (!bresult || -1 == ret) |
738 | { | 738 | { |
739 | DWORD error = GetLastError (); | ||
740 | SetErrnoFromWinError (error); | ||
739 | if (!bresult) | 741 | if (!bresult) |
740 | LOG_STRERROR ("ReadFile"); | 742 | LOG_STRERROR ("ReadFile"); |
741 | EXTRACTOR_IPC_channel_destroy_ (channels[i]); | 743 | EXTRACTOR_IPC_channel_destroy_ (channels[i]); |