diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2013-03-09 19:25:58 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2013-03-09 19:25:58 +0000 |
commit | 4fb814b906f54b18bcfa56654f019ed1ef36b98e (patch) | |
tree | b536248b6372940decde6d6395b148b56da3b244 /plugins/SplashScreen/src/options.cpp | |
parent | ac2acb9980932ed028b8a31d2add76a4b2b9b56b (diff) |
added precompiled header
git-svn-id: http://svn.miranda-ng.org/main/trunk@3946 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SplashScreen/src/options.cpp')
-rw-r--r-- | plugins/SplashScreen/src/options.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/SplashScreen/src/options.cpp b/plugins/SplashScreen/src/options.cpp index c604d305f0..8c0248985b 100644 --- a/plugins/SplashScreen/src/options.cpp +++ b/plugins/SplashScreen/src/options.cpp @@ -172,14 +172,14 @@ INT_PTR CALLBACK DlgProcOptions(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP if (Exists(szSplashFile))
{
- lstrcpy(initDir, szSplashFile);
+ _tcscpy_s(initDir, szSplashFile);
pos = _tcsrchr(initDir, _T('\\'));
if(pos != NULL) *pos = 0;
}
else
{
szMirDir = Utils_ReplaceVarsT(_T("%miranda_path%"));
- lstrcpy(initDir, szMirDir);
+ _tcscpy_s(initDir, szMirDir);
mir_free(szMirDir);
}
@@ -199,7 +199,7 @@ INT_PTR CALLBACK DlgProcOptions(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP if (GetOpenFileName(&ofn))
{
- lstrcpy(szSplashFile, szTempPath);
+ _tcscpy_s(szSplashFile, szTempPath);
#ifdef _DEBUG
logMessage(_T("Set path"), szSplashFile);
@@ -216,7 +216,7 @@ INT_PTR CALLBACK DlgProcOptions(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP if (pos != NULL)
{
*pos = 0;
- lstrcat(szPath2Spash, _T("\\"));
+ _tcscat_s(szPath2Spash, _T("\\"));
}
}
@@ -236,14 +236,14 @@ INT_PTR CALLBACK DlgProcOptions(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP if (Exists(szSoundFile))
{
- lstrcpy(initDir, szSoundFile);
+ _tcscpy_s(initDir, szSoundFile);
pos = _tcsrchr(initDir, _T('\\'));
if(pos != NULL) *pos = 0;
}
else
{
szMirDir = Utils_ReplaceVarsT(_T("%miranda_path%"));
- lstrcpy(initDir, szMirDir);
+ _tcscpy_s(initDir, szMirDir);
mir_free(szMirDir);
}
@@ -263,7 +263,7 @@ INT_PTR CALLBACK DlgProcOptions(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP if (GetOpenFileName(&ofn))
{
- lstrcpy(szSoundFile,szTempPath);
+ _tcscpy_s(szSoundFile,szTempPath);
#ifdef _DEBUG
logMessage(_T("Set sound path"), szSoundFile);
@@ -308,7 +308,7 @@ INT_PTR CALLBACK DlgProcOptions(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP GetWindowText(GetDlgItem(hwndDlg, IDC_VERSIONPREFIX), tmp, MAX_PATH);
DBWriteContactSettingTString(NULL, MODNAME, "VersionPrefix", tmp);
- lstrcpy(szPrefix, tmp);
+ _tcscpy_s(szPrefix, tmp);
GetWindowText(GetDlgItem(hwndDlg, IDC_SHOWTIME), tmp, MAX_PATH);
DBWriteContactSettingDword(NULL, MODNAME, "TimeToShow", _ttoi(tmp));
|