https://git.reactos.org/?p=reactos.git;a=commitdiff;h=353b5440474f3bf2c9dd16eee11bd42f11ea5d6d

commit 353b5440474f3bf2c9dd16eee11bd42f11ea5d6d
Author:     Serge Gautherie <[email protected]>
AuthorDate: Sat Apr 18 16:40:42 2020 +0200
Commit:     Mark Jansen <[email protected]>
CommitDate: Sat Jul 11 01:22:56 2020 +0200

    [AUDIOSRV] logmsg(): Disable its file part
    
    Mininal workaround for
    CORE-16814
---
 base/services/audiosrv/debug.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/base/services/audiosrv/debug.c b/base/services/audiosrv/debug.c
index df821afb51e..c19aada3538 100644
--- a/base/services/audiosrv/debug.c
+++ b/base/services/audiosrv/debug.c
@@ -4,10 +4,14 @@
 
 #include <stdio.h>
 
+// FIXME: Disabled to work around CORE-16814 (and CORE-16912).
+// #define ENABLE_LOGMSG_FILE
+
 void logmsg(char* string, ...)
 {
     va_list args;
 
+#ifdef ENABLE_LOGMSG_FILE
     FILE* debug_file = fopen("c:\\audiosrv-debug.txt", "a");
 
     if (debug_file)
@@ -18,6 +22,7 @@ void logmsg(char* string, ...)
         fclose(debug_file);
     }
     else
+#endif
     {
         char buf[256];
         va_start(args, string);

Reply via email to