This commit is contained in:
Igor Pavlov
2016-05-10 00:00:00 +00:00
committed by Kornel Lesiński
parent c20d013055
commit 66ac98bb02
92 changed files with 2462 additions and 925 deletions

View File

@@ -34,7 +34,7 @@ class CCrcHasher:
public:
CCrcHasher(): _crc(CRC_INIT_VAL) { SetFunctions(0); }
MY_UNKNOWN_IMP1(ICompressSetCoderProperties)
MY_UNKNOWN_IMP2(IHasher, ICompressSetCoderProperties)
INTERFACE_IHasher(;)
STDMETHOD(SetCoderProperties)(const PROPID *propIDs, const PROPVARIANT *props, UInt32 numProps);
};

View File

@@ -71,7 +71,7 @@ CDynLimBuf &CDynLimBuf::operator+=(const char *s) throw()
size_t n = _pos + len;
if (n - _size < _size)
{
size_t n = _sizeLimit;
n = _sizeLimit;
if (n - _size > _size)
n = _size * 2;
}

View File

@@ -18,7 +18,7 @@ class CSha1Hasher:
public:
CSha1Hasher() { Sha1_Init(&_sha); }
MY_UNKNOWN_IMP
MY_UNKNOWN_IMP1(IHasher)
INTERFACE_IHasher(;)
};

View File

@@ -18,7 +18,7 @@ class CSha256Hasher:
public:
CSha256Hasher() { Sha256_Init(&_sha); }
MY_UNKNOWN_IMP
MY_UNKNOWN_IMP1(IHasher)
INTERFACE_IHasher(;)
};

View File

@@ -19,7 +19,7 @@ class CXzCrc64Hasher:
public:
CXzCrc64Hasher(): _crc(CRC64_INIT_VAL) {}
MY_UNKNOWN_IMP
MY_UNKNOWN_IMP1(IHasher)
INTERFACE_IHasher(;)
};