Changeset - r7624:05fa62ddb883
[Not reviewed]
master
0 1 0
rubidium - 17 years ago 2007-09-24 19:15:42
rubidium@openttd.org
(svn r11155) -Fix [FS#1253]: work around a nasty MS CRT 8 SP1 bug making it virtually impossible to debug 32bpp games under MSVC (http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=257606). Patch by boekabart.
1 file changed with 4 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/fileio.cpp
Show inline comments
 
@@ -296,6 +296,10 @@ FILE *FioFOpenFileSp(const char *filenam
 
		snprintf(buf, lengthof(buf), "%s%s%s", _searchpaths[sp], _subdirs[subdir], filename);
 
	}
 

	
 
#if defined(WIN32)
 
	if (GetFileAttributes(OTTD2FS(buf)) == -1) return NULL;
 
#endif
 

	
 
	f = fopen(buf, mode);
 
#if !defined(WIN32)
 
	if (f == NULL) {
0 comments (0 inline, 0 general)