Skip to content

Commit

Permalink
Fix Retard Bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
marcussacana committed May 6, 2021
1 parent 404c4cd commit 0578e71
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions StringReloads/Hook/Win32/ExtTextOutW.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
6 changes: 3 additions & 3 deletions StringReloads/Hook/Win32/TextOutW.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 0578e71

Please sign in to comment.