mirror of
https://github.com/zeldaret/oot.git
synced 2024-12-01 23:36:00 +00:00
avoid_ub in DmaMgr_GetFileNameImpl
This commit is contained in:
parent
7e0b72998d
commit
cbddf7146d
3 changed files with 11 additions and 8 deletions
|
@ -210,6 +210,9 @@ const char* DmaMgr_GetFileNameImpl(u32 vrom) {
|
||||||
}
|
}
|
||||||
//! @bug Since there is no return, in case the file isn't found, the return value will be a pointer to the end
|
//! @bug Since there is no return, in case the file isn't found, the return value will be a pointer to the end
|
||||||
// of gDmaDataTable
|
// of gDmaDataTable
|
||||||
|
#ifdef AVOID_UB
|
||||||
|
return (const char*)iter;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
const char* DmaMgr_GetFileName(u32 vrom) {
|
const char* DmaMgr_GetFileName(u32 vrom) {
|
||||||
|
|
Loading…
Reference in a new issue