From 0578e712f2d773899ad7ecf74979fd53d240a741 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20Andr=C3=A9?= Date: Thu, 6 May 2021 19:45:14 -0300 Subject: [PATCH] Fix Retard Bugs --- StringReloads/Hook/Win32/ExtTextOutW.cs | 4 ++-- StringReloads/Hook/Win32/TextOutW.cs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/StringReloads/Hook/Win32/ExtTextOutW.cs b/StringReloads/Hook/Win32/ExtTextOutW.cs index f0c19ad..ce3b183 100644 --- a/StringReloads/Hook/Win32/ExtTextOutW.cs +++ b/StringReloads/Hook/Win32/ExtTextOutW.cs @@ -26,10 +26,10 @@ bool ExtTextOut(void* hdc, int x, int y, uint options, void* lprect, byte* lpStr WCString InStr = EntryPoint.ProcessW((WCString)(string)OriStr); - if (Config.Default.TextOutAUndoRemap) + if (Config.Default.ExtTextOutWUndoRemap) InStr = Remaper.Default.Restore(InStr); - if (Config.Default.TextOutARemapAlt) + if (Config.Default.ExtTextOutWRemapAlt) InStr = RemaperAlt.Default.Apply(InStr, null); return Bypass(hdc, x, y , options, lprect, InStr, (uint)InStr.LongCount()/2, lpDx); diff --git a/StringReloads/Hook/Win32/TextOutW.cs b/StringReloads/Hook/Win32/TextOutW.cs index dc169e8..4b03828 100644 --- a/StringReloads/Hook/Win32/TextOutW.cs +++ b/StringReloads/Hook/Win32/TextOutW.cs @@ -23,12 +23,12 @@ bool TextOut(void* dc, int xStart, int yStart, byte* pStr, int strLen) WCString InStr = pStr; InStr.FixedLength = (uint)strLen; - InStr = EntryPoint.Process((WCString)(string)InStr);//Ensure Null-Terminated + InStr = EntryPoint.ProcessW((WCString)(string)InStr);//Ensure Null-Terminated - if (Config.Default.ExtTextOutWUndoRemap) + if (Config.Default.TextOutWUndoRemap) InStr = Remaper.Default.Restore(InStr); - if (Config.Default.ExtTextOutWRemapAlt) + if (Config.Default.TextOutWRemapAlt) InStr = RemaperAlt.Default.Apply(InStr, null); return Bypass(dc, xStart, yStart, InStr, InStr.Count());