mirror of
https://github.com/PabloMK7/citra.git
synced 2024-11-27 01:44:04 +00:00
Service/HTTP_C: Fix error in CreateContext
This commit is contained in:
parent
2d09355a25
commit
2f50bf0007
1 changed files with 2 additions and 3 deletions
|
@ -59,14 +59,13 @@ void HTTP_C::CreateContext(Kernel::HLERequestContext& ctx) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
++context_counter;
|
contexts.emplace(++context_counter, Context());
|
||||||
contexts.emplace(context_counter, Context());
|
|
||||||
contexts[context_counter].url = std::move(url);
|
contexts[context_counter].url = std::move(url);
|
||||||
contexts[context_counter].method = method;
|
contexts[context_counter].method = method;
|
||||||
contexts[context_counter].state = RequestState::NotStarted;
|
contexts[context_counter].state = RequestState::NotStarted;
|
||||||
// TODO(Subv): Find a correct default value for this field.
|
// TODO(Subv): Find a correct default value for this field.
|
||||||
contexts[context_counter].socket_buffer_size = 0;
|
contexts[context_counter].socket_buffer_size = 0;
|
||||||
contexts[context_counter].handle = ++context_counter;
|
contexts[context_counter].handle = context_counter;
|
||||||
|
|
||||||
IPC::RequestBuilder rb = rp.MakeBuilder(2, 2);
|
IPC::RequestBuilder rb = rp.MakeBuilder(2, 2);
|
||||||
rb.Push(RESULT_SUCCESS);
|
rb.Push(RESULT_SUCCESS);
|
||||||
|
|
Loading…
Reference in a new issue