From eb0be0322ab668e863082ec8e271243ea8683c38 Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 4 Dec 2007 18:42:08 +0000 Subject: (svn r11569) -Fix [FS#1480]: full paths sometimes did not work correctly. --- src/fileio.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/fileio.cpp b/src/fileio.cpp index a2db03896..54a7ef932 100644 --- a/src/fileio.cpp +++ b/src/fileio.cpp @@ -350,6 +350,12 @@ FILE *FioFOpenFile(const char *filename, const char *mode, Subdirectory subdir, } } + /* Sometimes a full path is given. To support + * the 'subdirectory' must be 'removed'. */ + if (f == NULL && subdir != NO_DIRECTORY) { + f = FioFOpenFile(filename, mode, NO_DIRECTORY, filesize); + } + return f; } -- cgit v1.2.3-70-g09d2