windows-osilog-savestring-20080214

LICENSE MIT

When osi_Log is disabled, osi_LogSaveString will no longer copy the
provided string into the circular log buffer.  This saves a huge amount
of time.
This commit is contained in:
Jeffrey Altman 2008-02-15 03:18:42 +00:00
parent 588a229110
commit 00bada9c5e

View File

@ -255,6 +255,10 @@ char *osi_LogSaveString(osi_log_t *logp, char *s)
{
char *saveplace;
if (!logp) return s;
if (!logp->enabled) return s;
if (s == NULL) return NULL;
thrd_EnterCrit(&logp->cs);