diff options
author | 2003-04-18 20:11:36 +0000 | |
---|---|---|
committer | 2003-04-18 20:11:36 +0000 | |
commit | 882b7c4d89459e6e0d53a76778b7dd12e8bc4ce1 (patch) | |
tree | 17becf50124323764b096af62dc6a8d6b63bbf74 | |
parent | 08c1d138dc4b98a13bd0b31a84afae72bb0e611b (diff) |
10l
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9930 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | get_path.c | 4 |
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; |