mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-17 04:39:34 +00:00
Fixed returned error code on sceNetAdhocctlDelHandler
This commit is contained in:
parent
e6e7f5d1e7
commit
adab5ff5c9
@ -2115,11 +2115,14 @@ static u32 sceNetAdhocctlDisconnect() {
|
||||
}
|
||||
|
||||
static u32 sceNetAdhocctlDelHandler(u32 handlerID) {
|
||||
if (!netAdhocctlInited)
|
||||
return hleLogError(SCENET, ERROR_NET_ADHOCCTL_NOT_INITIALIZED, "adhocctl not initialized");
|
||||
|
||||
if (adhocctlHandlers.find(handlerID) != adhocctlHandlers.end()) {
|
||||
adhocctlHandlers.erase(handlerID);
|
||||
WARN_LOG(SCENET, "UNTESTED sceNetAdhocctlDelHandler(%d)", handlerID);
|
||||
INFO_LOG(SCENET, "sceNetAdhocctlDelHandler(%d)", handlerID);
|
||||
} else {
|
||||
ERROR_LOG(SCENET, "UNTESTED sceNetAdhocctlDelHandler(%d): Invalid Handler ID", handlerID);
|
||||
WARN_LOG(SCENET, "sceNetAdhocctlDelHandler(%d): Invalid Handler ID", handlerID);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user