diff options
author | skidd13 <skidd13@openttd.org> | 2008-06-02 14:27:58 +0000 |
---|---|---|
committer | skidd13 <skidd13@openttd.org> | 2008-06-02 14:27:58 +0000 |
commit | 11cdcf875c7e2d0900429b83195ad6aac5ce6d2e (patch) | |
tree | 4c4410cabaf08a8d35010d548f26880e398ac0cc /src/win32.cpp | |
parent | 8a40ca49c6c12ce47b2a333f5297d65abe957b86 (diff) | |
download | openttd-11cdcf875c7e2d0900429b83195ad6aac5ce6d2e.tar.xz |
(svn r13360) -Fix (r13359): Forgot to remove some instances of FiosAlloc()
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); |