mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-05 03:24:17 +01: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