fixing AzCore for linux/windows virtual warn
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
+5
-5
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user