summaryrefslogtreecommitdiffstats
path: root/get_path.c
diff options
context:
space:
mode:
authorfaust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-04-18 20:11:36 +0000
committerfaust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-04-18 20:11:36 +0000
commit882b7c4d89459e6e0d53a76778b7dd12e8bc4ce1 (patch)
tree17becf50124323764b096af62dc6a8d6b63bbf74 /get_path.c
parent08c1d138dc4b98a13bd0b31a84afae72bb0e611b (diff)
downloadmpv-882b7c4d89459e6e0d53a76778b7dd12e8bc4ce1.tar.bz2
mpv-882b7c4d89459e6e0d53a76778b7dd12e8bc4ce1.tar.xz
10l
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9930 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'get_path.c')
-rw-r--r--get_path.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/get_path.c b/get_path.c
index 081a4e735d..413b090e39 100644
--- a/get_path.c
+++ b/get_path.c
@@ -14,8 +14,8 @@ char *get_path(char *filename){
{
int __stdcall GetModuleFileNameA(void* hModule,char* lpFilename,int nSize);
int i,imax=0;
- char exedir[MAX_PATH];
- GetModuleFileNameA(NULL, exedir, MAX_PATH);
+ char exedir[260];
+ GetModuleFileNameA(NULL, exedir, 260);
for(i=0; i< strlen(exedir);i++)if(exedir[i] =='\\'){exedir[i]='/';imax=i;}
exedir[imax]='\0';
homedir = exedir;