mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix returned error code on PtpSend and PtpRecv when socket is not connected yet.
This commit is contained in:
parent
964b8bf331
commit
6b110af3e6
1 changed files with 7 additions and 7 deletions
|
@ -3884,16 +3884,16 @@ static int sceNetAdhocPtpSend(int id, u32 dataAddr, u32 dataSizeAddr, int timeou
|
|||
// Change Socket State
|
||||
ptpsocket.state = ADHOC_PTP_STATE_CLOSED;
|
||||
|
||||
// Disconnected
|
||||
return hleLogError(SCENET, ERROR_NET_ADHOC_DISCONNECTED, "disconnected");
|
||||
// Disconnected or Not connected?
|
||||
return hleLogError(SCENET, ERROR_NET_ADHOC_DISCONNECTED, "disconnected?");
|
||||
}
|
||||
|
||||
// Invalid Arguments
|
||||
return hleLogError(SCENET, ERROR_NET_ADHOC_INVALID_ARG, "invalid arg");
|
||||
}
|
||||
|
||||
// Not connected
|
||||
return hleLogError(SCENET, ERROR_NET_ADHOC_NOT_CONNECTED, "not connected");
|
||||
// Disconnected
|
||||
return hleLogError(SCENET, ERROR_NET_ADHOC_DISCONNECTED, "disconnected");
|
||||
}
|
||||
|
||||
// Invalid Socket
|
||||
|
@ -3998,11 +3998,11 @@ static int sceNetAdhocPtpRecv(int id, u32 dataAddr, u32 dataSizeAddr, int timeou
|
|||
// Change Socket State
|
||||
ptpsocket.state = ADHOC_PTP_STATE_CLOSED;
|
||||
|
||||
// Disconnected
|
||||
return hleLogError(SCENET, ERROR_NET_ADHOC_DISCONNECTED, "disconnected");
|
||||
// Disconnected or Not connected?
|
||||
return hleLogError(SCENET, ERROR_NET_ADHOC_DISCONNECTED, "disconnected?");
|
||||
}
|
||||
|
||||
return hleLogError(SCENET, ERROR_NET_ADHOC_NOT_CONNECTED, "not connected");
|
||||
return hleLogError(SCENET, ERROR_NET_ADHOC_DISCONNECTED, "disconnected");
|
||||
}
|
||||
|
||||
// Invalid Socket
|
||||
|
|
Loading…
Add table
Reference in a new issue