From 13b99e9e773a322b5fdd7cf4f6f6004a28472eeb Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Fri, 24 Apr 2015 06:38:16 +0000 Subject: crash fix warnings fix git-svn-id: http://svn.miranda-ng.org/main/trunk@13060 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/SplashScreen/src/services.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'plugins/SplashScreen/src/services.cpp') diff --git a/plugins/SplashScreen/src/services.cpp b/plugins/SplashScreen/src/services.cpp index ecf9821208..ee80c9639f 100644 --- a/plugins/SplashScreen/src/services.cpp +++ b/plugins/SplashScreen/src/services.cpp @@ -15,29 +15,29 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -*/ + */ #include "headers.h" -INT_PTR ShowSplashService(WPARAM wparam,LPARAM lparam) +INT_PTR ShowSplashService(WPARAM wparam, LPARAM lparam) { bserviceinvoked = true; - TCHAR szOldfn [256]; - TCHAR* filename = (TCHAR*) wparam; - int timetoshow = (int) lparam; + TCHAR szOldfn[256]; + TCHAR *filename = (TCHAR*)wparam; + int timetoshow = (int)lparam; - _tcscpy_s(szOldfn, szSplashFile); + mir_tstrcpy(szOldfn, szSplashFile); options.showtime = timetoshow; TCHAR *pos = _tcsrchr(filename, _T(':')); if (pos == NULL) mir_sntprintf(szSplashFile, SIZEOF(szSplashFile), _T("%s\\%s"), szMirDir, filename); else - _tcscpy_s(szSplashFile, filename); + mir_tstrcpy(szSplashFile, filename); ShowSplash(false); - _tcscpy_s(szSplashFile, szOldfn); + mir_tstrcpy(szSplashFile, szOldfn); return 0; } -- cgit v1.2.3