From 00abe36941546a64a00ea715d743a13403549b63 Mon Sep 17 00:00:00 2001 From: TuxSH Date: Tue, 17 Jan 2017 19:31:03 +0100 Subject: [PATCH] Fix ERRF_ExceptionData definition This "padding" field is not needed (the struct is used within an union when sent to ErrDisp), and is also undesirable as the kernel push an instance of `ERRF_ExceptionData` (which is a struct of size 0x5C, and not 0x60) on the user stack under certain conditions. --- libctru/include/3ds/errf.h | 1 - 1 file changed, 1 deletion(-) diff --git a/libctru/include/3ds/errf.h b/libctru/include/3ds/errf.h index f1acd92..24f240e 100644 --- a/libctru/include/3ds/errf.h +++ b/libctru/include/3ds/errf.h @@ -38,7 +38,6 @@ typedef struct { typedef struct { ERRF_ExceptionInfo excep; ///< Exception info struct CpuRegisters regs; ///< CPU register dump. - u8 pad[4]; } ERRF_ExceptionData; typedef struct {