mirror of
https://github.com/stascorp/rdpwrap.git
synced 2025-08-20 21:33:42 -07:00
Fix
This commit is contained in:
parent
32185c9c12
commit
7d5f17edf6
1 changed files with 4 additions and 7 deletions
|
@ -87,14 +87,11 @@ 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()
|
||||
// TODO: Write ExtractFilePath function
|
||||
// see http://forum.sources.ru/index.php?showtopic=48042
|
||||
DWORD GetBinaryPath(LPTSTR lpFileName, DWORD nSize)
|
||||
{
|
||||
wchar_t Filename[256];
|
||||
GetModuleFileName(GetCurrentModule(), Filename, 256);
|
||||
return Filename;
|
||||
return GetModuleFileName(GetCurrentModule(), lpFileName, nSize);
|
||||
}
|
||||
|
||||
/*PLATFORM_DWORD SearchAddressBySignature(char *StartPosition, PLATFORM_DWORD Size, char *Signature, int SignatureSize)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue