-_- file->filename

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-08-16 14:05:04 +02:00
parent 0d9435d326
commit 8dfba4db6d

4
util.c
View file

@ -403,11 +403,11 @@ FILE *util_fopen(const char *filename, const char *mode)
{ {
#ifdef WIN32 #ifdef WIN32
FILE *out; FILE *out;
if (fopen_s(&out, file, mode) != 0) if (fopen_s(&out, filename, mode) != 0)
return NULL; return NULL;
return out; return out;
#else #else
return fopen(file, mode); return fopen(filename, mode);
#endif #endif
} }