mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Fix comlilation on Linux.
This commit is contained in:
parent
cc63ed1764
commit
9491633b5f
|
@ -17,8 +17,9 @@ void LOG(u16 type, const char * format, ...) {
|
|||
#ifdef OS_WINDOWS
|
||||
FILE *dumpFile = _wfopen(logPath, wst("a+"));
|
||||
#else
|
||||
char cbuf[MAX_PATH];
|
||||
wcstombs(cbuf, logPath, MAX_PATH);
|
||||
constexpr size_t bufSize = PLUGIN_PATH_SIZE * 6;
|
||||
char cbuf[bufSize];
|
||||
wcstombs(cbuf, logPath, bufSize);
|
||||
FILE *dumpFile = fopen(cbuf, "a+");
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user