diff options
author | OctaneSnail <os@v12pwr.com> | 2008-12-13 19:21:59 +0300 |
---|---|---|
committer | OctaneSnail <os@v12pwr.com> | 2008-12-13 22:53:53 +0300 |
commit | 75ed77126304e38d098fc4f5845e552a48999734 (patch) | |
tree | ccf1e9c7cceb2e7a8bf0033bd46b6ab9ddcdca4a /RFS.cpp | |
parent | 56593e8a2543de45fd97aed91aa73a29b49a418b (diff) |
Add convenience function for logging headers.
Diffstat (limited to 'RFS.cpp')
-rw-r--r-- | RFS.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -296,15 +296,14 @@ int CRARFileSource::ScanArchive (wchar_t *archive_name, List<File> *file_list, i if (ReadHeader (hFile, &rh)) return FALSE; + LOG_HEADER (&rh); + if (rh.ch.type != HEADER_TYPE_ARCHIVE) { ErrorMsg (0, L"Unexpected RAR header type."); return FALSE; } - DbgLog ((LOG_TRACE, 2, L"Header CRC %04x TYPE %02x FLAGS %04x SIZE %04x", - rh.ch.crc, rh.ch.type, rh.ch.flags, rh.ch.size)); - if (rh.ch.flags & MHD_PASSWORD) { ErrorMsg (0, L"Encrypted RAR volumes are not supported."); @@ -387,8 +386,7 @@ int CRARFileSource::ScanArchive (wchar_t *archive_name, List<File> *file_list, i return FALSE; } - DbgLog ((LOG_TRACE, 2, L"Header CRC %04x TYPE %02x FLAGS %04x SIZE %04x", - rh.ch.crc, rh.ch.type, rh.ch.flags, rh.ch.size)); + LOG_HEADER (&rh); if (rh.ch.type == HEADER_TYPE_END) { |