mirror of
https://github.com/reactos/reactos.git
synced 2024-11-09 16:20:37 +00:00
178300c8a6
* Fix PCH use in shell32. svn path=/branches/shell32_new-bringup/; revision=53319
26 lines
514 B
C
26 lines
514 B
C
/* Service debugging (simply logs to a file) */
|
|
|
|
#include "audiosrv.h"
|
|
|
|
void logmsg(char* string, ...)
|
|
{
|
|
va_list args;
|
|
|
|
FILE* debug_file = fopen("c:\\audiosrv-debug.txt", "a");
|
|
|
|
if (debug_file)
|
|
{
|
|
va_start(args, string);
|
|
vfprintf(debug_file, string, args);
|
|
va_end(args);
|
|
fclose(debug_file);
|
|
}
|
|
else
|
|
{
|
|
char buf[256];
|
|
va_start(args, string);
|
|
vsprintf(buf, string, args);
|
|
OutputDebugStringA(buf);
|
|
va_end(args);
|
|
}
|
|
}
|