From 2f880bda3aa2d8817ce43481df9d99b12ed82a58 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 3 Apr 2018 14:05:33 +0300 Subject: code cleaning: old unions replaced with MAllStrings & MAllStringsArray --- protocols/IRCG/src/irclib.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'protocols/IRCG/src/irclib.cpp') 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; -- cgit v1.2.3