mirror of
https://github.com/devkitPro/wut.git
synced 2026-06-21 12:01:47 -05:00
libwhb: Don't add a LogHandler if it's already in the list. (#140)
This commit is contained in:
parent
27fbfd55fb
commit
aaa045af97
|
|
@ -27,6 +27,9 @@ WHBAddLogHandler(LogHandlerFn fn)
|
|||
int i;
|
||||
|
||||
for (i = 0; i < MAX_HANDLERS; ++i) {
|
||||
if(sHandlers[i] == fn){
|
||||
break;
|
||||
}
|
||||
if (!sHandlers[i]) {
|
||||
sHandlers[i] = fn;
|
||||
return TRUE;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user