From cf53e9c98436f33c59f03eeadd5faaffa6813421 Mon Sep 17 00:00:00 2001 From: binarymaster Date: Wed, 10 Dec 2014 19:38:01 +0300 Subject: [PATCH] Improvements --- src-x86-x64-Fusix/RDPWrap.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src-x86-x64-Fusix/RDPWrap.cpp b/src-x86-x64-Fusix/RDPWrap.cpp index 81e37c0..77903ca 100644 --- a/src-x86-x64-Fusix/RDPWrap.cpp +++ b/src-x86-x64-Fusix/RDPWrap.cpp @@ -385,7 +385,8 @@ HRESULT WINAPI New_CSLQuery_Initialize() WriteToLog("> CSLQuery::Initialize\r\n"); char *Sect; - Sect = new char[1024]; + Sect = new char[256]; + memset(Sect, 0x00, 256); wsprintfA(Sect, "%d.%d.%d.%d-SLInit", FV.wVersion.Major, FV.wVersion.Minor, FV.Release, FV.Build); if (IniFile->SectionExists(Sect)) @@ -691,8 +692,8 @@ void Hook() char *Sect; INI_VAR_STRING PatchName; INI_VAR_BYTEARRAY Patch; - Sect = new char[1024]; - memset(Sect, 0x00, 1024); + Sect = new char[256]; + memset(Sect, 0x00, 256); wsprintfA(Sect, "%d.%d.%d.%d", FV.wVersion.Major, FV.wVersion.Minor, FV.Release, FV.Build); if (IniFile->SectionExists(Sect))