diff options
author | George Hazan <george.hazan@gmail.com> | 2023-06-02 22:12:22 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-06-02 22:12:22 +0300 |
commit | c944dd795207f196ce64be39904506a58c9eac70 (patch) | |
tree | 8bf4762a10fe8c3e61152f031e82ddc050c122f7 /protocols | |
parent | 013be2d5a2f04726228b74a9504634b6bf7ebaa3 (diff) |
code cleaning
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/ICQ-WIM/src/proto.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/protocols/ICQ-WIM/src/proto.cpp b/protocols/ICQ-WIM/src/proto.cpp index ce22e20bf1..83fb342dec 100644 --- a/protocols/ICQ-WIM/src/proto.cpp +++ b/protocols/ICQ-WIM/src/proto.cpp @@ -451,10 +451,7 @@ HANDLE CIcqProto::SendFile(MCONTACT hContact, const wchar_t *szDescription, wcha {
IcqFileTransfer *pTransfer = nullptr;
- for (int i = 0; ; i++) {
- if (ppszFiles[i] == nullptr)
- break;
-
+ for (int i = 0; ppszFiles[i] != 0; i++) {
struct _stat statbuf;
if (_wstat(ppszFiles[0], &statbuf)) {
debugLogW(L"'%s' is an invalid filename", ppszFiles[i]);
|