mirror of
https://github.com/momo5502/hypervisor.git
synced 2026-07-07 00:09:58 +00:00
Improve patches
This commit is contained in:
@@ -69,7 +69,7 @@ namespace process
|
||||
std::string buffer{};
|
||||
buffer.resize(1024);
|
||||
|
||||
const auto length = GetModuleFileNameExA(process, module, &buffer[0], static_cast<DWORD>(buffer.size()));
|
||||
const auto length = GetModuleFileNameExA(process, module, buffer.data(), static_cast<DWORD>(buffer.size()));
|
||||
if (length > 0)
|
||||
{
|
||||
buffer.resize(length);
|
||||
|
||||
Reference in New Issue
Block a user