From 1e8713cfb502f818bd80557f67c42234947e4139 Mon Sep 17 00:00:00 2001 From: Maxime Meignan Date: Wed, 11 Oct 2023 11:13:37 +0200 Subject: [PATCH] removed useless macros --- EDRSandblast/Drivers/DriverGDRV.c | 15 +-------------- EDRSandblast/Drivers/DriverRTCore.c | 14 +------------- 2 files changed, 2 insertions(+), 27 deletions(-) diff --git a/EDRSandblast/Drivers/DriverGDRV.c b/EDRSandblast/Drivers/DriverGDRV.c index c84d5fa..c8e5ae1 100644 --- a/EDRSandblast/Drivers/DriverGDRV.c +++ b/EDRSandblast/Drivers/DriverGDRV.c @@ -1,23 +1,10 @@ // Details are available here : https://www.secureauth.com/labs/advisories/gigabyte-drivers-elevation-of-privilege-vulnerabilities/ +#include "PrintFunctions.h" #include "DriverGDRV.h" #include #include #include -#if NO_STRINGS -#define _putts_or_not(...) -#define _tprintf_or_not(...) -#define wprintf_or_not(...) -#define printf_or_not(...) -#pragma warning(disable : 4189) - -#else -#define _putts_or_not(...) _putts(__VA_ARGS__) -#define _tprintf_or_not(...) _tprintf(__VA_ARGS__) -#define printf_or_not(...) printf(__VA_ARGS__) -#define wprintf_or_not(...) wprintf(__VA_ARGS__) -#endif - /* * "gdrv.sys" (SHA256: 31f4cfb4c71da44120752721103a16512444c13c2ac2d857a7e6f13cb679b427) */ diff --git a/EDRSandblast/Drivers/DriverRTCore.c b/EDRSandblast/Drivers/DriverRTCore.c index 5fb0f80..d2eafcd 100644 --- a/EDRSandblast/Drivers/DriverRTCore.c +++ b/EDRSandblast/Drivers/DriverRTCore.c @@ -2,19 +2,7 @@ #include #include -#if NO_STRINGS -#define _putts_or_not(...) -#define _tprintf_or_not(...) -#define wprintf_or_not(...) -#define printf_or_not(...) -#pragma warning(disable : 4189) - -#else -#define _putts_or_not(...) _putts(__VA_ARGS__) -#define _tprintf_or_not(...) _tprintf(__VA_ARGS__) -#define printf_or_not(...) printf(__VA_ARGS__) -#define wprintf_or_not(...) wprintf(__VA_ARGS__) -#endif +#include "PrintFunctions.h" /* * "RTCore64.sys" (SHA256: 01AA278B07B58DC46C84BD0B1B5C8E9EE4E62EA0BF7A695862444AF32E87F1FD)