diff options
author | George Hazan <george.hazan@gmail.com> | 2024-08-14 13:39:44 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-08-14 13:39:48 +0300 |
commit | 59dcbfe729b33c924d94913f00534ebf2acf6d54 (patch) | |
tree | 93d2baec9f515cb2a6dc43136268290422725f9f | |
parent | baad3e11944ffb06ef5878426b3fcabf3785e0d2 (diff) |
CloudFile: crash fix
-rw-r--r-- | src/mir_app/src/filexferdlg.cpp | 5 |
1 files 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); |