1
0
mirror of https://github.com/momo5502/hypervisor.git synced 2026-07-07 00:09:58 +00:00

Improve patches

This commit is contained in:
Maurice Heumann
2022-12-27 21:17:54 +01:00
parent 90889e7d32
commit 4cde82aae1
2 changed files with 52 additions and 11 deletions
+1 -1
View File
@@ -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);