Author: cwittich
Date: Fri Jan 9 08:38:59 2009
New Revision: 38664
URL:
http://svn.reactos.org/svn/reactos?rev=38664&view=rev
Log:
fix msvc build
Modified:
trunk/reactos/base/services/audiosrv/debug.c
trunk/reactos/include/reactos/libs/audiosrv/audiosrv.h
Modified: trunk/reactos/base/services/audiosrv/debug.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/services/audiosrv/deb…
==============================================================================
--- trunk/reactos/base/services/audiosrv/debug.c [iso-8859-1] (original)
+++ trunk/reactos/base/services/audiosrv/debug.c [iso-8859-1] Fri Jan 9 08:38:59 2009
@@ -2,6 +2,7 @@
#include <stdio.h>
#include <stdarg.h>
+#include <windows.h>
void logmsg(char* string, ...)
{
@@ -9,11 +10,19 @@
FILE* debug_file = fopen("c:\\audiosrv-debug.txt", "a");
- va_start(args, string);
-
- vfprintf(debug_file, string, args);
-
- va_end(args);
-
- fclose(debug_file);
+ 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);
+ }
}
Modified: trunk/reactos/include/reactos/libs/audiosrv/audiosrv.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/libs/audio…
==============================================================================
--- trunk/reactos/include/reactos/libs/audiosrv/audiosrv.h [iso-8859-1] (original)
+++ trunk/reactos/include/reactos/libs/audiosrv/audiosrv.h [iso-8859-1] Fri Jan 9
08:38:59 2009
@@ -35,7 +35,7 @@
DWORD size; /* Size of the shared mem */
DWORD max_size; /* Amount of mem available */
DWORD device_count; /* Number of devices */
- PnP_AudioDevice first_device[];
+ PnP_AudioDevice *first_device;
} PnP_AudioHeader;