Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSpec-Chum <spec-chum@users.sourceforge.net>2010-03-06 02:13:09 +0300
committerSpec-Chum <spec-chum@users.sourceforge.net>2010-03-06 02:13:09 +0300
commit2eecc28c1541b2a7091498a6e8368bf63752a600 (patch)
treea75ab44676413538e80283bdc9378b8673e5f35f /src/subtitles/TextFile.cpp
parentc5de176f702251deb1cdf8c2fac103d68ecee3ad (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/TextFile.cpp')
-rw-r--r--src/subtitles/TextFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/subtitles/TextFile.cpp b/src/subtitles/TextFile.cpp
index 1f86a2aa0..1dfb62750 100644
--- a/src/subtitles/TextFile.cpp
+++ b/src/subtitles/TextFile.cpp
@@ -428,7 +428,7 @@ bool CWebTextFile::Open(LPCTSTR lpszFileName)
CAutoPtr<CStdioFile> f(is.OpenURL(fn, 1, INTERNET_FLAG_TRANSFER_BINARY|INTERNET_FLAG_EXISTING_CONNECT));
if(!f) return(false);
- TCHAR path[MAX_PATH];
+ TCHAR path[_MAX_PATH];
GetTempPath(MAX_PATH, path);
fn = path + fn.Mid(fn.ReverseFind('/')+1);