From 64ad7742099e12ee46de58a786816016caf32a20 Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Mon, 22 Jul 2024 18:26:07 +0800 Subject: [PATCH] [saco] Add outputdebugstring.h --- saco/main.h | 2 ++ saco/outputdebugstring.h | 14 ++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 saco/outputdebugstring.h diff --git a/saco/main.h b/saco/main.h index 65bb263..db56d95 100644 --- a/saco/main.h +++ b/saco/main.h @@ -87,5 +87,7 @@ void InitSettings(); void UnFuck(DWORD addr, int size); +#include "outputdebugstring.h" + //---------------------------------------------------- // EOF diff --git a/saco/outputdebugstring.h b/saco/outputdebugstring.h new file mode 100644 index 0000000..372384d --- /dev/null +++ b/saco/outputdebugstring.h @@ -0,0 +1,14 @@ + +#pragma once + +// Ensure OutputDebugString() is disabled on release builds + +#ifndef _DEBUG + +#undef OutputDebugString +#define OutputDebugString(a) NULL + +#undef OutputDebugStringW +#define OutputDebugStringW(a) NULL + +#endif