From e5a3116cffdf87b13912803006311262219aeb7b Mon Sep 17 00:00:00 2001 From: Alexander Golubev Date: Fri, 26 Aug 2016 22:11:14 +0300 Subject: Ark: [rar module] fix suppport for buggy rar versions Rar versions from 5.0 till 5.3, not including the last one were added extra spaces to short directory/file names. This behaviour resulted in appearing of additional entries for directories and may be some other issues. Also slightly rework internal rar version parsing/storing and fix some comments. --- ark/rar.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ark/rar.h') diff --git a/ark/rar.h b/ark/rar.h index fadb3e9..1476214 100644 --- a/ark/rar.h +++ b/ark/rar.h @@ -24,6 +24,8 @@ #ifndef RAR_H #define RAR_H +#include + #include "arch.h" class TQString; @@ -65,7 +67,7 @@ class RarArch : public Arch * Therefore, the variables below are needed. */ bool m_isFirstLine; - short m_version; + uint32_t m_version; TQString m_entryFilename; }; -- cgit v1.2.3