[SHIMS] Add IgnoreDebugOutput shim CORE-10369
authorMark Jansen <mark.jansen@reactos.org>
Sat, 20 May 2017 20:22:25 +0000 (20:22 +0000)
committerMark Jansen <mark.jansen@reactos.org>
Sat, 20 May 2017 20:22:25 +0000 (20:22 +0000)
svn path=/trunk/; revision=74610

reactos/dll/appcompat/shims/genral/CMakeLists.txt
reactos/dll/appcompat/shims/genral/ignoredbgout.c [new file with mode: 0644]

index 196488f..725a2d8 100644 (file)
@@ -4,6 +4,7 @@ include_directories(${SHIMLIB_DIR})
 spec2def(acgenral.dll genral.spec)
 
 list(APPEND SOURCE
+    ignoredbgout.c
     main.c
     themes.c
     genral.spec)
diff --git a/reactos/dll/appcompat/shims/genral/ignoredbgout.c b/reactos/dll/appcompat/shims/genral/ignoredbgout.c
new file mode 100644 (file)
index 0000000..40d5299
--- /dev/null
@@ -0,0 +1,32 @@
+/*
+ * COPYRIGHT:       See COPYING in the top level directory
+ * PROJECT:         ReactOS Shim library
+ * FILE:            dll/appcompat/shims/genral/ignoredbgout.c
+ * PURPOSE:         Ignore debug output shim
+ * PROGRAMMER:      Mark Jansen
+ */
+
+#include <windows.h>
+#include <shimlib.h>
+#include <strsafe.h>
+
+
+#define SHIM_NS         IgnoreDebugOutput
+#include <setup_shim.inl>
+
+void WINAPI SHIM_OBJ_NAME(OutputDebugStringA)(LPCSTR lpOutputString)
+{
+    (VOID)lpOutputString;
+}
+
+void WINAPI SHIM_OBJ_NAME(OutputDebugStringW)(LPCWSTR lpOutputString)
+{
+    (VOID)lpOutputString;
+}
+
+#define SHIM_NUM_HOOKS  2
+#define SHIM_SETUP_HOOKS \
+    SHIM_HOOK(0, "KERNEL32.DLL", "OutputDebugStringA", SHIM_OBJ_NAME(OutputDebugStringA)) \
+    SHIM_HOOK(1, "KERNEL32.DLL", "OutputDebugStringW", SHIM_OBJ_NAME(OutputDebugStringW))
+
+#include <implement_shim.inl>