From 06eb0a325e65678b19ee44bfdec0d0f2fc7c065d Mon Sep 17 00:00:00 2001 From: FusixGit Date: Sun, 7 Dec 2014 15:33:23 +0300 Subject: [PATCH] Update RDPWrap.cpp --- src-x86-x64-Fusix/RDPWrap.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src-x86-x64-Fusix/RDPWrap.cpp b/src-x86-x64-Fusix/RDPWrap.cpp index cb577ce..9fd91af 100644 --- a/src-x86-x64-Fusix/RDPWrap.cpp +++ b/src-x86-x64-Fusix/RDPWrap.cpp @@ -87,11 +87,14 @@ HMODULE GetCurrentModule() } // Correct this +// TODO: Add *wchar_t argument, size argument. Write ExtractFilePath function +// Variable "Filename" will be deleted after you exit the function. +// Stas => vk.com/im LPCWSTR GetBinaryPath() { wchar_t Filename[256]; - GetModuleFileName(GetCurrentModule(), &Filename[0], 256); - return &Filename[0]; + GetModuleFileName(GetCurrentModule(), Filename, 256); + return Filename; } /*PLATFORM_DWORD SearchAddressBySignature(char *StartPosition, PLATFORM_DWORD Size, char *Signature, int SignatureSize)