mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r13360) -Fix (r13359): Forgot to remove some instances of FiosAlloc()
This commit is contained in:
parent
8a40ca49c6
commit
11cdcf875c
|
@ -105,8 +105,6 @@ StringID FiosGetDescText(const char **path, uint32 *total_free);
|
|||
bool FiosDelete(const char *name);
|
||||
/* Make a filename from a name */
|
||||
void FiosMakeSavegameName(char *buf, const char *name, size_t size);
|
||||
/* Allocate a new FiosItem */
|
||||
FiosItem *FiosAlloc();
|
||||
|
||||
int CDECL compare_FiosItems(const void *a, const void *b);
|
||||
|
||||
|
|
|
@ -67,7 +67,7 @@ void FiosGetDrives()
|
|||
#endif
|
||||
|
||||
if (disk == disk2) {
|
||||
FiosItem *fios = FiosAlloc();
|
||||
FiosItem *fios = _fios_items.Append()();
|
||||
fios->type = FIOS_TYPE_DRIVE;
|
||||
fios->mtime = 0;
|
||||
#ifndef __INNOTEK_LIBC__
|
||||
|
|
|
@ -780,7 +780,7 @@ void FiosGetDrives()
|
|||
{
|
||||
#if defined(WINCE)
|
||||
/* WinCE only knows one drive: / */
|
||||
FiosItem *fios = FiosAlloc();
|
||||
FiosItem *fios = _fios_items.Append()();
|
||||
fios->type = FIOS_TYPE_DRIVE;
|
||||
fios->mtime = 0;
|
||||
snprintf(fios->name, lengthof(fios->name), PATHSEP "");
|
||||
|
@ -791,7 +791,7 @@ void FiosGetDrives()
|
|||
|
||||
GetLogicalDriveStrings(sizeof(drives), drives);
|
||||
for (s = drives; *s != '\0';) {
|
||||
FiosItem *fios = FiosAlloc();
|
||||
FiosItem *fios = _fios_items.Append()();
|
||||
fios->type = FIOS_TYPE_DRIVE;
|
||||
fios->mtime = 0;
|
||||
snprintf(fios->name, lengthof(fios->name), "%c:", s[0] & 0xFF);
|
||||
|
|
Loading…
Reference in New Issue