fixing AzCore for linux/windows virtual warn

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
Esteban Papp
2021-09-07 16:14:52 -07:00
parent 6b13e8bfc8
commit f30ac72040
19 changed files with 126 additions and 137 deletions
@@ -21,7 +21,7 @@ namespace AZ
class WinAPIOverrunDetectionSchema : public OverrunDetectionSchema::PlatformAllocator
{
public:
virtual SystemInformation GetSystemInformation() override
SystemInformation GetSystemInformation() override
{
SystemInformation result;
SYSTEM_INFO info;
@@ -32,7 +32,7 @@ namespace AZ
return result;
}
virtual void* ReserveBytes(size_t amount) override
void* ReserveBytes(size_t amount) override
{
void* result = VirtualAlloc(0, amount, MEM_RESERVE, PAGE_NOACCESS);
@@ -45,12 +45,12 @@ namespace AZ
return result;
}
virtual void ReleaseReservedBytes(void* base) override
void ReleaseReservedBytes(void* base) override
{
VirtualFree(base, 0, MEM_RELEASE);
}
virtual void* CommitBytes(void* base, size_t amount) override
void* CommitBytes(void* base, size_t amount) override
{
void* result = VirtualAlloc(base, amount, MEM_COMMIT, PAGE_READWRITE);
@@ -63,7 +63,7 @@ namespace AZ
return result;
}
virtual void DecommitBytes(void* base, size_t amount) override
void DecommitBytes(void* base, size_t amount) override
{
VirtualFree(base, amount, MEM_DECOMMIT);
}