[Kernel] Make XHttpStartup succeed and add stubs for XHttpOpen and XHttpConnect that fail

This commit is contained in:
Cancerous 2020-01-09 22:07:31 -05:00 committed by illusion
parent 848e370854
commit 4248246387
1 changed files with 21 additions and 3 deletions

View File

@ -152,13 +152,31 @@ struct XNetStartupParams {
XNetStartupParams xnet_startup_params = {0};
int_result_t NetDll_XHttpStartup(dword_t unknown1, dword_t unknown2)
int_result_t NetDll_XHttpStartup(dword_t unknown1)
{
// TODO: implement, but return 0 (fail) for now, 1 = success
return 0;
// TODO: implement, but for now, 0 == fail : 1 == success
return 1;
}
DECLARE_XAM_EXPORT1(NetDll_XHttpStartup, kNetworking, kStub);
dword_result_t NetDll_XHttpOpen(dword_t unknown1)
{
// TODO: implement, but fail for now
// WSAENOTSOCK
XThread::SetLastError(0x2736);
return NULL;
}
DECLARE_XAM_EXPORT1(NetDll_XHttpOpen, kNetworking, kStub);
dword_result_t NetDll_XHttpConnect(dword_t unknown1)
{
// TODO: implement, but fail for now
// WSAENOTSOCK
XThread::SetLastError(0x2736);
return NULL;
}
DECLARE_XAM_EXPORT1(NetDll_XHttpConnect, kNetworking, kStub);
dword_result_t NetDll_XNetStartup(dword_t caller,
pointer_t<XNetStartupParams> params) {