mirror of
https://github.com/wiiu-env/WUMSLoader.git
synced 2026-09-27 12:27:06 -05:00
Fix several compiler warnings
This commit is contained in:
@@ -11,7 +11,7 @@ public:
|
||||
this->address = address;
|
||||
}
|
||||
|
||||
const wums_entry_type_t getType() const {
|
||||
wums_entry_type_t getType() const {
|
||||
return type;
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ public:
|
||||
this->target = target;
|
||||
}
|
||||
|
||||
const wums_hook_type_t getType() const {
|
||||
wums_hook_type_t getType() const {
|
||||
return type;
|
||||
}
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ bool ModuleDataPersistence::saveModuleData(module_information_t *moduleInformati
|
||||
bool found = false;
|
||||
for (uint32_t j = 0; j < EXPORT_ENTRY_LIST_LENGTH; j++) {
|
||||
export_data_t *export_entry = &(module_data->export_entries[j]);
|
||||
if (export_entry->address == NULL) {
|
||||
if (export_entry->address == 0) {
|
||||
export_entry->type = curExport.getType();
|
||||
strncpy(export_entry->name, curExport.getName().c_str(), EXPORT_MAXIMUM_NAME_LENGTH);
|
||||
export_entry->address = (uint32_t) curExport.getAddress();
|
||||
@@ -50,7 +50,7 @@ bool ModuleDataPersistence::saveModuleData(module_information_t *moduleInformati
|
||||
bool found = false;
|
||||
for (uint32_t j = 0; j < HOOK_ENTRY_LIST_LENGTH; j++) {
|
||||
hook_data_t *hook_entry = &(module_data->hook_entries[j]);
|
||||
if (hook_entry->target == NULL) {
|
||||
if (hook_entry->target == 0) {
|
||||
hook_entry->type = curHook.getType();
|
||||
hook_entry->target = (uint32_t) curHook.getTarget();
|
||||
found = true;
|
||||
|
||||
@@ -46,11 +46,11 @@ public:
|
||||
return name;
|
||||
}
|
||||
|
||||
const uint32_t getAddress() const {
|
||||
uint32_t getAddress() const {
|
||||
return address;
|
||||
}
|
||||
|
||||
const uint32_t getSize() const {
|
||||
uint32_t getSize() const {
|
||||
return sectionSize;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user