mirror of
https://github.com/wiiu-env/SystemMenuHook.git
synced 2025-04-23 03:51:19 +02:00
Fix intended crash when now hook_payload.elf was found on the sd card. Update the error message
This commit is contained in:
parent
afa0e44bad
commit
b971891f28
@ -26,7 +26,7 @@ int32_t LoadFileToMem(const char *relativefilepath, char **fileOut, uint32_t * s
|
||||
WHBLogPrintf("Loading file %s.",path);
|
||||
|
||||
*fileOut = WHBReadWholeFile(path, sizeOut);
|
||||
if (!fileOut) {
|
||||
if (!(*fileOut)) {
|
||||
result = -2;
|
||||
WHBLogPrintf("WHBReadWholeFile(%s) returned NULL", path);
|
||||
goto exit;
|
||||
@ -41,7 +41,7 @@ uint32_t load_loader_elf(unsigned char* baseAddress, const char* relativePath) {
|
||||
char * elf_data = NULL;
|
||||
uint32_t fileSize = 0;
|
||||
if(LoadFileToMem(relativePath, &elf_data, &fileSize) != 0) {
|
||||
OSFatal("Failed to load hook elf from SD.");
|
||||
OSFatal("Failed to load hook_payload.elf from the SD Card.");
|
||||
}
|
||||
|
||||
Elf32_Ehdr *ehdr;
|
||||
|
Loading…
x
Reference in New Issue
Block a user