mirror of
https://github.com/mpv-player/mpv
synced 2025-02-17 04:58:06 +00:00
10l
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9930 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
08c1d138dc
commit
882b7c4d89
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user