diff options
Diffstat (limited to 'protocols/IRCG')
-rw-r--r-- | protocols/IRCG/src/ircproto.cpp | 11 | ||||
-rw-r--r-- | protocols/IRCG/src/ircproto.h | 2 |
2 files changed, 6 insertions, 7 deletions
diff --git a/protocols/IRCG/src/ircproto.cpp b/protocols/IRCG/src/ircproto.cpp index 1b4fbb5a31..97c81d76b6 100644 --- a/protocols/IRCG/src/ircproto.cpp +++ b/protocols/IRCG/src/ircproto.cpp @@ -381,21 +381,20 @@ int CIrcProto::FileDeny(MCONTACT, HANDLE hTransfer, const wchar_t*) ////////////////////////////////////////////////////////////////////////////////////////
// FileResume - processes file renaming etc
-int CIrcProto::FileResume(HANDLE hTransfer, int* action, const wchar_t** szFilename)
+int CIrcProto::FileResume(HANDLE hTransfer, int action, const wchar_t *szFilename)
{
DCCINFO* di = (DCCINFO*)hTransfer;
- long i = (long)*action;
-
+ long i = action;
CDccSession *dcc = FindDCCSession(di);
if (dcc) {
InterlockedExchange(&dcc->dwWhatNeedsDoing, i);
- if (*action == FILERESUME_RENAME) {
- wchar_t* szTemp = wcsdup(*szFilename);
+ if (action == FILERESUME_RENAME) {
+ wchar_t* szTemp = wcsdup(szFilename);
InterlockedExchangePointer((PVOID*)&dcc->NewFileName, szTemp);
}
- if (*action == FILERESUME_RESUME) {
+ if (action == FILERESUME_RESUME) {
unsigned __int64 dwPos = 0;
struct _stati64 statbuf;
diff --git a/protocols/IRCG/src/ircproto.h b/protocols/IRCG/src/ircproto.h index fb8839d056..6c344ef45d 100644 --- a/protocols/IRCG/src/ircproto.h +++ b/protocols/IRCG/src/ircproto.h @@ -55,7 +55,7 @@ struct CIrcProto : public PROTO<CIrcProto> HANDLE FileAllow(MCONTACT hContact, HANDLE hTransfer, const wchar_t *szPath) override; int FileCancel(MCONTACT hContact, HANDLE hTransfer) override; int FileDeny(MCONTACT hContact, HANDLE hTransfer, const wchar_t *szReason) override; - int FileResume(HANDLE hTransfer, int *action, const wchar_t **szFilename) override; + int FileResume(HANDLE hTransfer, int action, const wchar_t *szFilename) override; INT_PTR GetCaps(int type, MCONTACT hContact = NULL) override; |