(svn r13360) -Fix (r13359): Forgot to remove some instances of FiosAlloc()

This commit is contained in:
skidd13
2008-06-02 14:27:58 +00:00
parent 8a40ca49c6
commit 11cdcf875c
3 changed files with 3 additions and 5 deletions

View File

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