Skip to content

Commit

Permalink
fix: compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jeefo committed Jun 6, 2024
1 parent 48693be commit 5c4deaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crlib/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ struct Platform : public Singleton <Platform> {
MEMORY_BASIC_INFORMATION mbi {};

if (VirtualQuery (reinterpret_cast <LPVOID> (ptr), &mbi, sizeof (mbi))) {
auto result = (mbi.Protect & PAGE_READONLY | PAGE_READWRITE | PAGE_WRITECOPY | PAGE_EXECUTE_READ | PAGE_EXECUTE_READWRITE | PAGE_EXECUTE_WRITECOPY);
auto result = (mbi.Protect & (PAGE_READONLY | PAGE_READWRITE | PAGE_WRITECOPY | PAGE_EXECUTE_READ | PAGE_EXECUTE_READWRITE | PAGE_EXECUTE_WRITECOPY));

if (mbi.Protect & (PAGE_GUARD | PAGE_NOACCESS)) {
result = false;
Expand Down

0 comments on commit 5c4deaf

Please sign in to comment.