diff options
author | Spec-Chum <spec-chum@users.sourceforge.net> | 2010-03-06 02:13:09 +0300 |
---|---|---|
committer | Spec-Chum <spec-chum@users.sourceforge.net> | 2010-03-06 02:13:09 +0300 |
commit | 2eecc28c1541b2a7091498a6e8368bf63752a600 (patch) | |
tree | a75ab44676413538e80283bdc9378b8673e5f35f /src/subtitles/STS.cpp | |
parent | c5de176f702251deb1cdf8c2fac103d68ecee3ad (diff) |
Fix potential crash by using _MAX_DRIVE (thanks aggro). Also changed all MAX_PATH to _MAX_PATH for consistency across all files
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@1732 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/subtitles/STS.cpp')
-rw-r--r-- | src/subtitles/STS.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/subtitles/STS.cpp b/src/subtitles/STS.cpp index a35999083..c91109791 100644 --- a/src/subtitles/STS.cpp +++ b/src/subtitles/STS.cpp @@ -1261,7 +1261,7 @@ static bool LoadFont(CString& font) if(hFont == INVALID_HANDLE_VALUE)
{
- TCHAR path[MAX_PATH];
+ TCHAR path[_MAX_PATH];
GetTempPath(MAX_PATH, path);
DWORD chksum = 0;
@@ -2714,10 +2714,10 @@ bool CSimpleTextSubtitle::Open(CTextFile* f, int CharSet, CString name) bool CSimpleTextSubtitle::Open(BYTE* data, int len, int CharSet, CString name)
{
- TCHAR path[MAX_PATH];
+ TCHAR path[_MAX_PATH];
if(!GetTempPath(MAX_PATH, path)) return(false);
- TCHAR fn[MAX_PATH];
+ TCHAR fn[_MAX_PATH];
if(!GetTempFileName(path, _T("vs"), 0, fn)) return(false);
FILE* tmp = _tfopen(fn, _T("wb"));
|