Author: mjansen Date: Sat May 20 20:22:25 2017 New Revision: 74610
URL: http://svn.reactos.org/svn/reactos?rev=74610&view=rev Log: [SHIMS] Add IgnoreDebugOutput shim CORE-10369
Added: trunk/reactos/dll/appcompat/shims/genral/ignoredbgout.c (with props) Modified: trunk/reactos/dll/appcompat/shims/genral/CMakeLists.txt
Modified: trunk/reactos/dll/appcompat/shims/genral/CMakeLists.txt URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/appcompat/shims/genral/... ============================================================================== --- trunk/reactos/dll/appcompat/shims/genral/CMakeLists.txt [iso-8859-1] (original) +++ trunk/reactos/dll/appcompat/shims/genral/CMakeLists.txt [iso-8859-1] Sat May 20 20:22:25 2017 @@ -4,6 +4,7 @@ spec2def(acgenral.dll genral.spec)
list(APPEND SOURCE + ignoredbgout.c main.c themes.c genral.spec)
Added: trunk/reactos/dll/appcompat/shims/genral/ignoredbgout.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/appcompat/shims/genral/... ============================================================================== --- trunk/reactos/dll/appcompat/shims/genral/ignoredbgout.c (added) +++ trunk/reactos/dll/appcompat/shims/genral/ignoredbgout.c [iso-8859-1] Sat May 20 20:22:25 2017 @@ -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>
Propchange: trunk/reactos/dll/appcompat/shims/genral/ignoredbgout.c ------------------------------------------------------------------------------ svn:eol-style = native