From 066496b1196d8d16691dd499b1bedb938a7432f1 Mon Sep 17 00:00:00 2001 From: kernel <77142078+kernelwernel@users.noreply.github.com> Date: Fri, 9 Aug 2024 22:26:46 +0100 Subject: [PATCH] hyperv_fucker prototype 12 --- src/vmaware.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/vmaware.hpp b/src/vmaware.hpp index 9c4afb1..d8e53e3 100644 --- a/src/vmaware.hpp +++ b/src/vmaware.hpp @@ -2032,11 +2032,11 @@ struct VM { if (x1 || x2 || x3 || x4 || x5) { is_vm = true; #ifdef __VMAWARE_DEBUG__ - if (x1) { debug("SMBIOS: x1 = ", x1); std::string tmp(x1); result = tmp; } - if (x2) { debug("SMBIOS: x2 = ", x2); std::string tmp(x2); result = tmp; } - if (x3) { debug("SMBIOS: x3 = ", x3); std::string tmp(x3); result = tmp; } - if (x4) { debug("SMBIOS: x4 = ", x4); std::string tmp(x4); result = tmp; } - if (x5) { debug("SMBIOS: x5 = ", x5); std::string tmp(x5); result = tmp; } + if (x1) { debug("SMBIOS: x1 = ", x1); std::string tmp(reinterpret_cast(x1)); result = tmp; } + if (x2) { debug("SMBIOS: x2 = ", x2); std::string tmp(reinterpret_cast(x2)); result = tmp; } + if (x3) { debug("SMBIOS: x3 = ", x3); std::string tmp(reinterpret_cast(x3)); result = tmp; } + if (x4) { debug("SMBIOS: x4 = ", x4); std::string tmp(reinterpret_cast(x4)); result = tmp; } + if (x5) { debug("SMBIOS: x5 = ", x5); std::string tmp(reinterpret_cast(x5)); result = tmp; } #endif } LocalFree(p);