From 6e38081165f6180180f824fa1864605ec4db1614 Mon Sep 17 00:00:00 2001 From: Subv Date: Mon, 19 Feb 2018 00:30:30 -0500 Subject: ResultCode: Mark any error code that isn't 0 as an error. --- src/core/hle/result.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/hle/result.h') diff --git a/src/core/hle/result.h b/src/core/hle/result.h index 656e1b4a7..97fef7a48 100644 --- a/src/core/hle/result.h +++ b/src/core/hle/result.h @@ -108,11 +108,11 @@ union ResultCode { } constexpr bool IsSuccess() const { - return is_error.ExtractValue(raw) == 0; + return raw == 0; } constexpr bool IsError() const { - return is_error.ExtractValue(raw) == 1; + return raw != 0; } }; -- cgit v1.2.3