Translate memory allocation failure error

This commit is contained in:
PJB3005
2026-02-24 21:04:48 +01:00
parent e4104cadad
commit 513b86f8ed
+6
View File
@@ -344,9 +344,15 @@ static void myMemoryErrorRoutine(void* p_heap, u32 size, int alignment) {
if (notSolidHeap) {
// "Error: Can't allocate memory %d(0x%x)Bytes, %d Byte Alignment from %08x\n"
#if TARGET_PC
OSReport_Error(
"Error: Can't allocate memory %d(0x%x)Bytes, %d Byte Alignment from %08x\n",
size, size, alignment, p_heap);
#else
OSReport_Error(
"エラー: メモリを確保できません %d(0x%x)バイト、 %d バイトアライメント from %08x\n",
size, size, alignment, p_heap);
#endif
}
union {