diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-04-24 06:38:16 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-04-24 06:38:16 +0000 |
commit | 13b99e9e773a322b5fdd7cf4f6f6004a28472eeb (patch) | |
tree | a3f542baaf4f67eadf607875e1a6584d762478b2 /plugins/SplashScreen/src/services.cpp | |
parent | 7003bcdcc1263afd99f3d3ec9187e8ebea39326f (diff) |
crash fix
warnings fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@13060 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SplashScreen/src/services.cpp')
-rw-r--r-- | plugins/SplashScreen/src/services.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
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;
}
|