Fix cellNetCtlNetStartDialogUnloadAsync
This commit is contained in:
@@ -280,14 +280,17 @@ error_code cellNetCtlNetStartDialogUnloadAsync(vm::ptr<CellNetCtlNetStartDialogR
|
|||||||
|
|
||||||
if (result->size != 8)
|
if (result->size != 8)
|
||||||
{
|
{
|
||||||
result->result = CELL_NET_CTL_ERROR_INVALID_SIZE;
|
|
||||||
return CELL_NET_CTL_ERROR_INVALID_SIZE;
|
return CELL_NET_CTL_ERROR_INVALID_SIZE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (g_cfg.net.net_status == CELL_NET_CTL_STATE_Disconnected)
|
if (g_cfg.net.net_status == CELL_NET_CTL_STATE_Disconnected)
|
||||||
{
|
{
|
||||||
result->result = CELL_NET_CTL_ERROR_NET_NOT_CONNECTED;
|
result->result = CELL_NET_CTL_ERROR_NET_NOT_CONNECTED;
|
||||||
return CELL_NET_CTL_ERROR_NET_NOT_CONNECTED;
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Hack
|
||||||
|
result->result = CELL_NET_CTL_ERROR_DIALOG_CANCELED;
|
||||||
}
|
}
|
||||||
|
|
||||||
sysutil_send_system_cmd(CELL_SYSUTIL_NET_CTL_NETSTART_UNLOADED, 0);
|
sysutil_send_system_cmd(CELL_SYSUTIL_NET_CTL_NETSTART_UNLOADED, 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user