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/filters/source | |
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/filters/source')
-rw-r--r-- | src/filters/source/SubtitleSource/SubtitleSource.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/filters/source/SubtitleSource/SubtitleSource.cpp b/src/filters/source/SubtitleSource/SubtitleSource.cpp index 9beeb97fb..0bddf17a8 100644 --- a/src/filters/source/SubtitleSource/SubtitleSource.cpp +++ b/src/filters/source/SubtitleSource/SubtitleSource.cpp @@ -628,7 +628,7 @@ HRESULT CSubtitleSourceSSA::GetMediaType(CMediaType* pmt) sts.RemoveAll();
CFile f;
- TCHAR path[MAX_PATH], fn[MAX_PATH];
+ TCHAR path[_MAX_PATH], fn[_MAX_PATH];
if(!GetTempPath(MAX_PATH, path) || !GetTempFileName(path, _T("mpc_sts"), 0, fn))
return E_FAIL;
@@ -677,7 +677,7 @@ HRESULT CSubtitleSourceASS::GetMediaType(CMediaType* pmt) sts.RemoveAll();
CFile f;
- TCHAR path[MAX_PATH], fn[MAX_PATH];
+ TCHAR path[_MAX_PATH], fn[_MAX_PATH];
if(!GetTempPath(MAX_PATH, path) || !GetTempFileName(path, _T("mpc_sts"), 0, fn))
return E_FAIL;
|