--- previous/src/debug/log.c 2018/04/24 19:32:07 1.1.1.4 +++ previous/src/debug/log.c 2018/04/24 19:33:57 1.1.1.5 @@ -123,11 +123,11 @@ void Log_UnInit(void) /** * Output string to log file */ -void Log_Printf(LOGTYPE nType, const char *psFormat, ...) +void _Log_Printf(LOGTYPE nType, const char *psFormat, ...) { va_list argptr; - if (hLogFile && nType <= TextLogLevel) + if (hLogFile && nType && nType <= TextLogLevel) { va_start(argptr, psFormat); vfprintf(hLogFile, psFormat, argptr); @@ -148,7 +148,7 @@ void Log_AlertDlg(LOGTYPE nType, const c va_list argptr; /* Output to log file: */ - if (hLogFile && nType <= TextLogLevel) + if (hLogFile && nType && nType <= TextLogLevel) { va_start(argptr, psFormat); vfprintf(hLogFile, psFormat, argptr); @@ -159,7 +159,7 @@ void Log_AlertDlg(LOGTYPE nType, const c } /* Show alert dialog box: */ - if (sdlscrn && nType <= AlertDlgLogLevel) + if (sdlscrn && nType && nType <= AlertDlgLogLevel) { char *psTmpBuf; psTmpBuf = malloc(2048);