From 9c22d4b0b8b9e5fe36c3ba611c8e91cba9266afa Mon Sep 17 00:00:00 2001 From: Mark Jansen Date: Sat, 20 May 2017 20:22:25 +0000 Subject: [PATCH] [SHIMS] Add IgnoreDebugOutput shim CORE-10369 svn path=/trunk/; revision=74610 --- .../dll/appcompat/shims/genral/CMakeLists.txt | 1 + .../dll/appcompat/shims/genral/ignoredbgout.c | 32 +++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 reactos/dll/appcompat/shims/genral/ignoredbgout.c diff --git a/reactos/dll/appcompat/shims/genral/CMakeLists.txt b/reactos/dll/appcompat/shims/genral/CMakeLists.txt index 196488fd13b..725a2d85f6d 100644 --- a/reactos/dll/appcompat/shims/genral/CMakeLists.txt +++ b/reactos/dll/appcompat/shims/genral/CMakeLists.txt @@ -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 index 00000000000..40d5299dee4 --- /dev/null +++ b/reactos/dll/appcompat/shims/genral/ignoredbgout.c @@ -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 +#include +#include + + +#define SHIM_NS IgnoreDebugOutput +#include + +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 -- 2.17.1