From 4e373df13b744184dfe891615fe06a2adc9052e4 Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Sun, 3 Jun 2018 14:50:55 -0400 Subject: [PATCH] reenable gdi hooks --- vnr/vnrhook/src/hijack/texthook.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/vnr/vnrhook/src/hijack/texthook.cc b/vnr/vnrhook/src/hijack/texthook.cc index a98820b..01e5b8f 100644 --- a/vnr/vnrhook/src/hijack/texthook.cc +++ b/vnr/vnrhook/src/hijack/texthook.cc @@ -356,9 +356,11 @@ DWORD TextHook::UnsafeSend(DWORD dwDataBase, DWORD dwRetn) if ((dwType & NO_ASCII) && !hp.filter_fun) hp.filter_fun = NoAsciiFilter; - // jichi 10/24/2014: Skip GDI functions - if (!::gdi_hook_enabled_ && ::IsGDIFunction((LPCVOID)hp.address)) - return 0; + // jichi 10/24/2014: Skip GDI functions + // Artikash 6/3/2018: why?? + // Artikash 6/3/2018: Reenable GDI functions + //if (!::gdi_hook_enabled_ && ::IsGDIFunction((LPCVOID)hp.address)) + // return 0; dwAddr = hp.address;