diff options
Diffstat (limited to 'src/modules/srfile/filexferdlg.cpp')
-rw-r--r-- | src/modules/srfile/filexferdlg.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/modules/srfile/filexferdlg.cpp b/src/modules/srfile/filexferdlg.cpp index 3dc4e27bd5..99eed2c3d9 100644 --- a/src/modules/srfile/filexferdlg.cpp +++ b/src/modules/srfile/filexferdlg.cpp @@ -684,10 +684,11 @@ INT_PTR CALLBACK DlgProcFileTransfer(HWND hwndDlg, UINT msg, WPARAM wParam, LPAR vstsi->returnCode = -1;
}
SetFtStatus(hwndDlg, LPGENT("Scanning for viruses..."), FTS_TEXT);
- if (vstsi) forkthread((void (*)(void*))RunVirusScannerThread, 0, vstsi);
- } else {
- dat->fs=NULL; /* protocol will free structure */
- }
+ if (vstsi)
+ forkthread((void (*)(void*))RunVirusScannerThread, 0, vstsi);
+ }
+ else dat->fs=NULL; /* protocol will free structure */
+
dat->transferStatus.currentFileNumber=dat->transferStatus.totalFiles;
} // else dat->send
|