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/parser/RealMediaSplitter | |
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/parser/RealMediaSplitter')
-rw-r--r-- | src/filters/parser/RealMediaSplitter/RealMediaSplitter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/filters/parser/RealMediaSplitter/RealMediaSplitter.cpp b/src/filters/parser/RealMediaSplitter/RealMediaSplitter.cpp index 0fb806e93..e133b8435 100644 --- a/src/filters/parser/RealMediaSplitter/RealMediaSplitter.cpp +++ b/src/filters/parser/RealMediaSplitter/RealMediaSplitter.cpp @@ -1749,7 +1749,7 @@ HRESULT CRealVideoDecoder::CheckInputType(const CMediaType* mtIn) _T("drvc.dll");
CRegKey key;
- TCHAR buff[MAX_PATH];
+ TCHAR buff[_MAX_PATH];
ULONG len = sizeof(buff);
if(ERROR_SUCCESS == key.Open(HKEY_CLASSES_ROOT, _T("Software\\RealNetworks\\Preferences\\DT_Codecs"), KEY_READ)
&& ERROR_SUCCESS == key.QueryStringValue(NULL, buff, &len) && _tcslen(buff) > 0)
@@ -2189,7 +2189,7 @@ HRESULT CRealAudioDecoder::CheckInputType(const CMediaType* mtIn) newdll.Format(_T("%s.dll"), fourcc);
CRegKey key;
- TCHAR buff[MAX_PATH];
+ TCHAR buff[_MAX_PATH];
ULONG len = sizeof(buff);
if(ERROR_SUCCESS == key.Open(HKEY_CLASSES_ROOT, _T("Software\\RealNetworks\\Preferences\\DT_Codecs"), KEY_READ)
&& ERROR_SUCCESS == key.QueryStringValue(NULL, buff, &len) && _tcslen(buff) > 0)
@@ -2241,7 +2241,7 @@ HRESULT CRealAudioDecoder::CheckInputType(const CMediaType* mtIn) if(m_hDrvDll)
{
- char buff[MAX_PATH];
+ char buff[_MAX_PATH];
GetModuleFileNameA(m_hDrvDll, buff, MAX_PATH);
CPathA p(buff);
p.RemoveFileSpec();
|