From 050d116cb6e5dead69cea9bcecb3f2eae85431da Mon Sep 17 00:00:00 2001 From: B3n30 Date: Tue, 24 Jul 2018 23:38:19 +0200 Subject: [PATCH] Fixed include in http_c,h; added ERROR_CONTEXT_ERROR to CreateContext --- src/core/hle/service/http_c.cpp | 3 +-- src/core/hle/service/http_c.h | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/hle/service/http_c.cpp b/src/core/hle/service/http_c.cpp index 72dc2a450..b4611c748 100644 --- a/src/core/hle/service/http_c.cpp +++ b/src/core/hle/service/http_c.cpp @@ -54,8 +54,7 @@ void HTTP_C::CreateContext(Kernel::HLERequestContext& ctx) { LOG_ERROR(Service_HTTP, "invalid request method={}", static_cast(method)); IPC::RequestBuilder rb = rp.MakeBuilder(1, 2); - rb.Push(ResultCode(ErrCodes::InvalidContext, ErrorModule::HTTP, ErrorSummary::InvalidState, - ErrorLevel::Permanent)); + rb.Push(ERROR_CONTEXT_ERROR); rb.PushMappedBuffer(buffer); return; } diff --git a/src/core/hle/service/http_c.h b/src/core/hle/service/http_c.h index e2d89e10d..8b77fb8af 100644 --- a/src/core/hle/service/http_c.h +++ b/src/core/hle/service/http_c.h @@ -4,6 +4,7 @@ #pragma once +#include #include #include #include