summaryrefslogtreecommitdiff
path: root/src/os/windows
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2016-09-04 12:54:30 +0000
committeralberth <alberth@openttd.org>2016-09-04 12:54:30 +0000
commit95bb103a233c9986777897c0d8b26f6f7c1cf08f (patch)
treeb3cd0327b26c3f7016d96a6b11d78f616a7b030a /src/os/windows
parentcaf33797463560617526cbb38eac5e8b77eda242 (diff)
downloadopenttd-95bb103a233c9986777897c0d8b26f6f7c1cf08f.tar.xz
(svn r27643) -Codechange: FiosGetDrives function also takes a destination file list.
Diffstat (limited to 'src/os/windows')
-rw-r--r--src/os/windows/win32.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/os/windows/win32.cpp b/src/os/windows/win32.cpp
index 041468a13..344d24314 100644
--- a/src/os/windows/win32.cpp
+++ b/src/os/windows/win32.cpp
@@ -208,11 +208,11 @@ bool FiosIsRoot(const char *file)
return file[3] == '\0'; // C:\...
}
-void FiosGetDrives()
+void FiosGetDrives(FileList &file_list)
{
#if defined(WINCE)
/* WinCE only knows one drive: / */
- FiosItem *fios = _fios_items.Append();
+ FiosItem *fios = file_list.Append();
fios->type = FIOS_TYPE_DRIVE;
fios->mtime = 0;
seprintf(fios->name, lastof(fios->name), PATHSEP "");
@@ -223,7 +223,7 @@ void FiosGetDrives()
GetLogicalDriveStrings(lengthof(drives), drives);
for (s = drives; *s != '\0';) {
- FiosItem *fios = _fios_items.Append();
+ FiosItem *fios = file_list.Append();
fios->type = FIOS_TYPE_DRIVE;
fios->mtime = 0;
seprintf(fios->name, lastof(fios->name), "%c:", s[0] & 0xFF);