diff options
author | George Hazan <ghazan@miranda.im> | 2018-04-03 14:05:33 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-04-03 14:05:33 +0300 |
commit | 2f880bda3aa2d8817ce43481df9d99b12ed82a58 (patch) | |
tree | d92de519c6bc13e0ce3d8e42ba64deeb46d474dc /protocols/IRCG/src | |
parent | 66b61f42871089f3962920924f9030cd6dff2ad8 (diff) |
code cleaning: old unions replaced with MAllStrings & MAllStringsArray
Diffstat (limited to 'protocols/IRCG/src')
-rw-r--r-- | protocols/IRCG/src/irclib.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/protocols/IRCG/src/irclib.cpp b/protocols/IRCG/src/irclib.cpp index 1dea025bbe..956634afb0 100644 --- a/protocols/IRCG/src/irclib.cpp +++ b/protocols/IRCG/src/irclib.cpp @@ -853,15 +853,15 @@ int CDccSession::SetupConnection() file[0] = (wchar_t*)di->sFileAndPath.c_str(); file[1] = nullptr; - pfts.tszCurrentFile = (wchar_t*)di->sFileAndPath.c_str(); - pfts.tszWorkingDir = (wchar_t*)di->sPath.c_str(); + pfts.szCurrentFile.w = (wchar_t*)di->sFileAndPath.c_str(); + pfts.szWorkingDir.w = (wchar_t*)di->sPath.c_str(); pfts.hContact = di->hContact; pfts.flags = PFTS_UNICODE + ((di->bSender) ? PFTS_SENDING : PFTS_RECEIVING); pfts.totalFiles = 1; pfts.currentFileNumber = 0; pfts.totalBytes = di->dwSize; pfts.currentFileSize = pfts.totalBytes; - pfts.ptszFiles = file; + pfts.pszFiles.w = file; pfts.totalProgress = 0; pfts.currentFileProgress = 0; pfts.currentFileTime = (unsigned long)time(nullptr); @@ -919,8 +919,8 @@ int CDccSession::SetupConnection() di->sFile = di->sFileAndPath.Mid(i + 1); } - pfts.tszCurrentFile = di->sFileAndPath.GetBuffer(); - pfts.tszWorkingDir = di->sPath.GetBuffer(); + pfts.szCurrentFile.w = di->sFileAndPath.GetBuffer(); + pfts.szWorkingDir.w = di->sPath.GetBuffer(); pfts.totalBytes = di->dwSize; pfts.currentFileSize = pfts.totalBytes; |