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/apps/mplayerc/OpenFileDlg.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/apps/mplayerc/OpenFileDlg.cpp')
-rw-r--r-- | src/apps/mplayerc/OpenFileDlg.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/apps/mplayerc/OpenFileDlg.cpp b/src/apps/mplayerc/OpenFileDlg.cpp index 3ea90ed73..8d4a59bc5 100644 --- a/src/apps/mplayerc/OpenFileDlg.cpp +++ b/src/apps/mplayerc/OpenFileDlg.cpp @@ -119,7 +119,7 @@ BOOL COpenFileDlg::OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult) BOOL COpenFileDlg::OnIncludeItem(OFNOTIFYEX* pOFNEx, LRESULT* pResult)
{
- TCHAR buff[MAX_PATH];
+ TCHAR buff[_MAX_PATH];
if(!SHGetPathFromIDList((LPCITEMIDLIST)pOFNEx->pidl, buff))
{
STRRET s;
|