From 6059197036452263c89b30d89215429693043f33 Mon Sep 17 00:00:00 2001 From: binarymaster Date: Wed, 10 Dec 2014 19:28:31 +0300 Subject: [PATCH] Perfect look --- src-x86-x64-Fusix/RDPWrap.cpp | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/src-x86-x64-Fusix/RDPWrap.cpp b/src-x86-x64-Fusix/RDPWrap.cpp index bf99675..81e37c0 100644 --- a/src-x86-x64-Fusix/RDPWrap.cpp +++ b/src-x86-x64-Fusix/RDPWrap.cpp @@ -568,18 +568,14 @@ void Hook() _ServiceMain = (SERVICEMAIN)GetProcAddress(hTermSrv, "ServiceMain"); _SvchostPushServiceGlobals = (SVCHOSTPUSHSERVICEGLOBALS)GetProcAddress(hTermSrv, "SvchostPushServiceGlobals"); - Log = new char[1024]; - wsprintfA(Log, "Base addr: 0x%p\r\n", hTermSrv); - WriteToLog(Log); - delete[] Log; - - Log = new char[1024]; - wsprintfA(Log, "SvcMain: termsrv.dll+0x%p\r\n", (PLATFORM_DWORD)_ServiceMain - (PLATFORM_DWORD)hTermSrv); - WriteToLog(Log); - delete[] Log; - - Log = new char[1024]; - wsprintfA(Log, "SvcGlobals: termsrv.dll+0x%p\r\n", (PLATFORM_DWORD)_SvchostPushServiceGlobals - (PLATFORM_DWORD)hTermSrv); + Log = new char[4096]; + wsprintfA(Log, + "Base addr: 0x%p\r\n" + "SvcMain: termsrv.dll+0x%p\r\n" + "SvcGlobals: termsrv.dll+0x%p\r\n", + hTermSrv, + (PLATFORM_DWORD)_ServiceMain - (PLATFORM_DWORD)hTermSrv, + (PLATFORM_DWORD)_SvchostPushServiceGlobals - (PLATFORM_DWORD)hTermSrv); WriteToLog(Log); delete[] Log;