Fix logfiles crashing Windoze
This commit is contained in:
parent
f83d0fe3a1
commit
3bb7fd4cbf
|
@ -197,9 +197,12 @@ int main(int argc, char **argv)
|
|||
format, timeinfo);
|
||||
}
|
||||
|
||||
if (logdir)
|
||||
{
|
||||
M_MkdirEachUntil(logfilename,
|
||||
M_PathParts(logdir) - 1,
|
||||
M_PathParts(logfilename) - 1, 0755);
|
||||
}
|
||||
|
||||
#ifdef __unix__
|
||||
logstream = fopen(logfilename, "w");
|
||||
|
|
Loading…
Reference in New Issue