git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9930 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
faust3 2003-04-18 20:11:36 +00:00
parent 08c1d138dc
commit 882b7c4d89
1 changed files with 2 additions and 2 deletions

View File

@ -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;