STATIC int GC_write(const char *buf, size_t len)
{
- BOOL tmp;
+ BOOL res;
DWORD written;
# if (defined(THREADS) && defined(GC_ASSERTIONS)) \
|| !defined(GC_PRINT_VERBOSE_STATS)
}
# endif
}
- tmp = WriteFile(GC_log, buf, (DWORD)len, &written, NULL);
- if (!tmp)
- DebugBreak();
+ res = WriteFile(GC_log, buf, (DWORD)len, &written, NULL);
# if defined(_MSC_VER) && defined(_DEBUG)
# ifdef MSWINCE
/* There is no CrtDbgReport() in WinCE */
# endif
# endif
IF_NEED_TO_LOCK(LeaveCriticalSection(&GC_write_cs));
- return tmp ? (int)written : -1;
+ return res ? (int)written : -1;
}
/* FIXME: This is pretty ugly ... */