From a12e588079700d55a0b788fea2df7727c2e41f52 Mon Sep 17 00:00:00 2001 From: Aki Date: Sun, 27 Mar 2022 17:42:26 +0200 Subject: Removed MemDebug from FoundationEx --- Stars45/Encrypt.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'Stars45/Encrypt.cpp') diff --git a/Stars45/Encrypt.cpp b/Stars45/Encrypt.cpp index ba07099..44d07ca 100644 --- a/Stars45/Encrypt.cpp +++ b/Stars45/Encrypt.cpp @@ -12,7 +12,6 @@ */ -#include "MemDebug.h" #include "Encrypt.h" #include "Utils.h" @@ -80,7 +79,7 @@ Encryption::Encrypt(Text block) len += 8; } - BYTE* work = new(__FILE__,__LINE__) BYTE[len]; + BYTE* work = new BYTE[len]; ZeroMemory(work, len); CopyMemory(work, block.data(), block.length()); @@ -107,7 +106,7 @@ Encryption::Decrypt(Text block) return Text(); } - BYTE* work = new(__FILE__,__LINE__) BYTE[len]; + BYTE* work = new BYTE[len]; CopyMemory(work, block.data(), len); long* v = (long*) work; @@ -129,7 +128,7 @@ Text Encryption::Encode(Text block) { int len = block.length() * 2; - char* work = new(__FILE__,__LINE__) char[len + 1]; + char* work = new char[len + 1]; for (int i = 0; i < block.length(); i++) { BYTE b = (BYTE) (block.data()[i]); @@ -150,7 +149,7 @@ Text Encryption::Decode(Text block) { int len = block.length() / 2; - char* work = new(__FILE__,__LINE__) char[len + 1]; + char* work = new char[len + 1]; for (int i = 0; i < len; i++) { char u = block[2*i]; -- cgit v1.1