Skip to content

Commit

Permalink
parallels fix attempt 1
Browse files Browse the repository at this point in the history
  • Loading branch information
kernelwernel committed Dec 7, 2023
1 parent dc9f480 commit b000179
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/vmaware.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2875,10 +2875,9 @@ struct VM {
return false;
}

// remove later
//#if !(x86 && MSVC)
// return false;
//#else
#if (!MSVC)
return false;
#else
bool is_vm = false;

auto VPCExceptionHandler = [](PEXCEPTION_POINTERS ep) -> DWORD {
Expand Down Expand Up @@ -2913,7 +2912,7 @@ struct VM {
}
// The exception block shouldn't get triggered if VPC is running
__except(VPCExceptionHandler(GetExceptionInformation())) { }

/*
// ========== TEST 2 (query virtual pc device) ==========
if (is_vm == false) {
Expand Down Expand Up @@ -2951,13 +2950,14 @@ struct VM {
IsVM = true;
}
}
*/

if (is_vm == true) {
return add(VPC);
} else {
return false;
}
//#endif
#endif
} catch (...) {
#ifdef __VMAWARE_DEBUG__
debug("VPC_BACKDOOR:", "catched error, returned false");
Expand Down

0 comments on commit b000179

Please sign in to comment.