diff options
Diffstat (limited to 'src/win32.cpp')
-rw-r--r-- | src/win32.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/win32.cpp b/src/win32.cpp index ba35b7e9c..9f671c9f6 100644 --- a/src/win32.cpp +++ b/src/win32.cpp @@ -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); |