diff --git a/desmume/src/windows/ConfigKeys.h b/desmume/src/windows/ConfigKeys.h index 0e6491fe9..932d1c149 100644 --- a/desmume/src/windows/ConfigKeys.h +++ b/desmume/src/windows/ConfigKeys.h @@ -18,7 +18,7 @@ extern DWORD ds_select; extern DWORD ds_start; extern DWORD ds_debug; -void GetINIPath(char *initpath); +void GetINIPath(char *initpath,u16 bufferSize); void ReadConfig(void); BOOL CALLBACK ConfigView_Proc(HWND dialog,UINT komunikat,WPARAM wparam,LPARAM lparam); diff --git a/desmume/src/windows/main.c b/desmume/src/windows/main.c index 7fd2d511a..6c527c27a 100644 --- a/desmume/src/windows/main.c +++ b/desmume/src/windows/main.c @@ -467,7 +467,7 @@ int WINAPI WinMain (HINSTANCE hThisInstance, LogStart(); #endif - GetINIPath(IniName); + GetINIPath(IniName, MAX_PATH); NDS_Init();