mirror of
https://github.com/GTAmodding/re3.git
synced 2024-12-28 00:25:39 +00:00
fix some string sizes to be MAX_PATH
This commit is contained in:
parent
22e8e0eff8
commit
3383d8c6e7
2 changed files with 8 additions and 0 deletions
|
@ -487,7 +487,11 @@ GetNameOfSavedGame(int32 slot)
|
|||
bool
|
||||
CheckDataNotCorrupt(int32 slot, char *name)
|
||||
{
|
||||
#ifdef FIX_BUGS
|
||||
char filename[MAX_PATH];
|
||||
#else
|
||||
char filename[100];
|
||||
#endif
|
||||
|
||||
int32 blocknum = 0;
|
||||
eLevelName level = LEVEL_GENERIC;
|
||||
|
|
|
@ -25,7 +25,11 @@ C_PcSave::SetSaveDirectory(const char *path)
|
|||
bool
|
||||
C_PcSave::DeleteSlot(int32 slot)
|
||||
{
|
||||
#ifdef FIX_BUGS
|
||||
char FileName[MAX_PATH];
|
||||
#else
|
||||
char FileName[200];
|
||||
#endif
|
||||
|
||||
PcSaveHelper.nErrorCode = SAVESTATUS_SUCCESSFUL;
|
||||
sprintf(FileName, "%s%i.b", DefaultPCSaveFileName, slot + 1);
|
||||
|
|
Loading…
Reference in a new issue