Missed one, try to fix Blackberry too.

This commit is contained in:
Unknown W. Brackets 2013-12-30 21:52:09 -08:00
parent f14361c3b8
commit e569bb6862
3 changed files with 20 additions and 14 deletions

View File

@ -23,6 +23,10 @@
#endif
#include <stdint.h>
#ifdef BLACKBERRY
using std::size_t;
#endif
void* AllocateExecutableMemory(size_t size, bool low = true);
void* AllocateMemoryPages(size_t size);
void FreeMemoryPages(void* ptr, size_t size);

View File

@ -248,3 +248,18 @@ bool ParamSFOData::WriteSFO(u8 **paramsfo, size_t *size)
}
void ParamSFOData::ValueData::SetData(const u8* data, int size)
{
if(u_value)
{
delete[] u_value;
u_value = 0;
}
if(size > 0)
{
u_value = new u8[size];
memcpy(u_value, data, size);
}
u_size = size;
}

View File

@ -62,20 +62,7 @@ private:
u8* u_value;
unsigned int u_size;
void SetData(const u8* data, int size)
{
if(u_value)
{
delete[] u_value;
u_value = 0;
}
if(size > 0)
{
u_value = new u8[size];
memcpy(u_value, data, size);
}
u_size = size;
}
void SetData(const u8* data, int size);
ValueData()
{