summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/file.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mir_app/src/file.cpp b/src/mir_app/src/file.cpp
index 4b1b1c843f..4be92ea9be 100644
--- a/src/mir_app/src/file.cpp
+++ b/src/mir_app/src/file.cpp
@@ -262,7 +262,7 @@ MEVENT Proto_RecvFile(MCONTACT hContact, PROTORECVFILE *pre)
DB::FILE_BLOB blob(wszFiles, wszDescr);
if (auto *ppro = Proto_GetContactInstance(hContact))
- ppro->OnReceiveOfflineFile(blob, (void*)pre->lParam);
+ ppro->OnReceiveOfflineFile(blob, pre->pUserInfo);
blob.write(dbei);
MEVENT hdbe = db_event_add(hContact, &dbei);
@@ -273,7 +273,7 @@ MEVENT Proto_RecvFile(MCONTACT hContact, PROTORECVFILE *pre)
CLISTEVENT cle = {};
cle.hContact = hContact;
cle.hDbEvent = hdbe;
- cle.lParam = pre->lParam;
+ cle.lParam = LPARAM(pre->pUserInfo);
if (!bSilent && File::bAutoAccept && Contact::OnList(hContact))
LaunchRecvDialog(&cle);