From 59dcbfe729b33c924d94913f00534ebf2acf6d54 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 14 Aug 2024 13:39:44 +0300 Subject: CloudFile: crash fix --- src/mir_app/src/filexferdlg.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mir_app/src/filexferdlg.cpp b/src/mir_app/src/filexferdlg.cpp index a5396da239..3f76244d9e 100644 --- a/src/mir_app/src/filexferdlg.cpp +++ b/src/mir_app/src/filexferdlg.cpp @@ -599,8 +599,9 @@ INT_PTR CALLBACK DlgProcFileTransfer(HWND hwndDlg, UINT msg, WPARAM wParam, LPAR dbei.timestamp = time(0); DB::FILE_BLOB blob(dat->szFilenames, dat->szMsg); - if (auto *ppro = Proto_GetContactInstance(dat->hContact)) - ppro->OnSendOfflineFile(dbei, blob, fs); + if (auto *pa = Proto_GetAccount(ack->szModule)) + if (pa->ppro) + pa->ppro->OnSendOfflineFile(dbei, blob, fs); blob.write(dbei); db_event_add(dat->hContact, &dbei); -- cgit v1.2.3