[SHIMS] Add IgnoreDebugOutput shim CORE-10369

svn path=/trunk/; revision=74610
This commit is contained in:
Mark Jansen 2017-05-20 20:22:25 +00:00
parent 817f78086f
commit 9c22d4b0b8
2 changed files with 33 additions and 0 deletions

View file

@ -4,6 +4,7 @@ include_directories(${SHIMLIB_DIR})
spec2def(acgenral.dll genral.spec) spec2def(acgenral.dll genral.spec)
list(APPEND SOURCE list(APPEND SOURCE
ignoredbgout.c
main.c main.c
themes.c themes.c
genral.spec) genral.spec)

View file

@ -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>