From bdd6a8a6b981a019e6818230077567b4fb51604c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 31 Jan 2018 17:51:08 +0300 Subject: mir_app: - structure renamed: PROTORECVFILET -> PROTORECVFILE; - useless service MS_PROTO_AUTHRECV removed; - Proto_AuthRecv() helper converted into a function. --- protocols/Gadu-Gadu/src/core.cpp | 2 +- protocols/Gadu-Gadu/src/filetransfer.cpp | 4 ++-- protocols/Gadu-Gadu/src/gg_proto.h | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'protocols/Gadu-Gadu') diff --git a/protocols/Gadu-Gadu/src/core.cpp b/protocols/Gadu-Gadu/src/core.cpp index dcc51fc84e..266ff97786 100644 --- a/protocols/Gadu-Gadu/src/core.cpp +++ b/protocols/Gadu-Gadu/src/core.cpp @@ -1036,7 +1036,7 @@ retry: wchar_t* filenameT = mir_a2u((char*)dcc7->filename); - PROTORECVFILET pre = { 0 }; + PROTORECVFILE pre = { 0 }; pre.dwFlags = PRFF_UNICODE; pre.fileCount = 1; pre.timestamp = time(nullptr); diff --git a/protocols/Gadu-Gadu/src/filetransfer.cpp b/protocols/Gadu-Gadu/src/filetransfer.cpp index b02bdfaf9d..65e3ce7a1b 100644 --- a/protocols/Gadu-Gadu/src/filetransfer.cpp +++ b/protocols/Gadu-Gadu/src/filetransfer.cpp @@ -390,7 +390,7 @@ void __cdecl GaduProto::dccmainthread(void*) local_dcc->contact = (void*)getcontact(local_dcc->peer_uin, 0, 0, nullptr); wchar_t* filenameT = mir_utf8decodeW((char*)dcc->file_info.filename); - PROTORECVFILET pre = { 0 }; + PROTORECVFILE pre = { 0 }; pre.dwFlags = PRFF_UNICODE; pre.fileCount = 1; pre.timestamp = time(nullptr); @@ -927,7 +927,7 @@ int GaduProto::FileDeny(MCONTACT, HANDLE hTransfer, const wchar_t *) //////////////////////////////////////////////////////////// // Called when received an file // -int GaduProto::RecvFile(MCONTACT hContact, PROTORECVFILET* pre) +int GaduProto::RecvFile(MCONTACT hContact, PROTORECVFILE* pre) { return Proto_RecvFile(hContact, pre); } diff --git a/protocols/Gadu-Gadu/src/gg_proto.h b/protocols/Gadu-Gadu/src/gg_proto.h index 361830b64a..f342797018 100644 --- a/protocols/Gadu-Gadu/src/gg_proto.h +++ b/protocols/Gadu-Gadu/src/gg_proto.h @@ -45,7 +45,7 @@ struct GaduProto : public PROTO virtual HWND __cdecl SearchAdvanced(HWND owner); virtual HWND __cdecl CreateExtendedSearchUI(HWND owner); - virtual int __cdecl RecvFile(MCONTACT hContact, PROTORECVFILET*); + virtual int __cdecl RecvFile(MCONTACT hContact, PROTORECVFILE*); virtual HANDLE __cdecl SendFile(MCONTACT hContact, const wchar_t* szDescription, wchar_t** ppszFiles); virtual int __cdecl SendMsg(MCONTACT hContact, int flags, const char* msg); @@ -139,7 +139,7 @@ struct GaduProto : public PROTO HANDLE fileallow(MCONTACT hContact, HANDLE hTransfer, const wchar_t* szPath); int filecancel(MCONTACT hContact, HANDLE hTransfer); int filedeny(MCONTACT hContact, HANDLE hTransfer, const wchar_t* szReason); - int recvfile(MCONTACT hContact, PROTORECVFILET* pre); + int recvfile(MCONTACT hContact, PROTORECVFILE* pre); HANDLE sendfile(MCONTACT hContact, const wchar_t* szDescription, wchar_t** ppszFiles); HANDLE dccfileallow(HANDLE hTransfer, const wchar_t* szPath); -- cgit v1.2.3