From c1e60721e900cb28c4e39d106e65549d3579ccfc Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 13 Jul 2023 21:01:07 +0300 Subject: standard offline file download finalization --- include/m_protosvc.h | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'include') diff --git a/include/m_protosvc.h b/include/m_protosvc.h index 979d4568e9..c4a62e7327 100644 --- a/include/m_protosvc.h +++ b/include/m_protosvc.h @@ -444,8 +444,7 @@ struct CUSTOMSEARCHRESULTS struct PROTOFILERESUME { - ~PROTOFILERESUME() - { + ~PROTOFILERESUME() { mir_free(szFilename); } @@ -811,13 +810,11 @@ __forceinline INT_PTR ProtoChainRecvFile(MCONTACT hContact, PROTORECVFILE *pre) #define PS_OFFLINEFILE "/OfflineFile" -struct OFDTHREAD +struct MIR_APP_EXPORT OFDTHREAD : public MNonCopyable { - __forceinline OFDTHREAD(MEVENT _1, const CMStringW &_2, bool _3) : - hDbEvent(_1), - wszPath(_2), - bOpen(_3) - {} + OFDTHREAD(MEVENT, const CMStringW &, bool); + + void Finish(); MEVENT hDbEvent; CMStringW wszPath; -- cgit v1.2.3