summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/vi/vi.cpp
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2019-07-01 17:10:27 +0200
committerFernandoS27 <fsahmkow27@gmail.com>2019-07-05 21:49:33 +0200
commitf3a39e0c9ce8468859da12e35a52fa088e264d28 (patch)
tree1b8213a87e7cda7ccb5be0828770415d2d78000e /src/core/hle/service/vi/vi.cpp
parentNVServices: Styling, define constructors as explicit and corrections (diff)
downloadyuzu-f3a39e0c9ce8468859da12e35a52fa088e264d28.tar
yuzu-f3a39e0c9ce8468859da12e35a52fa088e264d28.tar.gz
yuzu-f3a39e0c9ce8468859da12e35a52fa088e264d28.tar.bz2
yuzu-f3a39e0c9ce8468859da12e35a52fa088e264d28.tar.lz
yuzu-f3a39e0c9ce8468859da12e35a52fa088e264d28.tar.xz
yuzu-f3a39e0c9ce8468859da12e35a52fa088e264d28.tar.zst
yuzu-f3a39e0c9ce8468859da12e35a52fa088e264d28.zip
Diffstat (limited to 'src/core/hle/service/vi/vi.cpp')
-rw-r--r--src/core/hle/service/vi/vi.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/hle/service/vi/vi.cpp b/src/core/hle/service/vi/vi.cpp
index 894bcdc04..199b30635 100644
--- a/src/core/hle/service/vi/vi.cpp
+++ b/src/core/hle/service/vi/vi.cpp
@@ -536,7 +536,7 @@ private:
if (result) {
// Buffer is available
- IGBPDequeueBufferResponseParcel response{(*result).first, *(*result).second};
+ IGBPDequeueBufferResponseParcel response{result->first, *result->second};
ctx.WriteBuffer(response.Serialize());
} else {
// Wait the current thread until a buffer becomes available
@@ -549,8 +549,7 @@ private:
auto result = buffer_queue.DequeueBuffer(width, height);
ASSERT_MSG(result != std::nullopt, "Could not dequeue buffer.");
- IGBPDequeueBufferResponseParcel response{(*result).first,
- *(*result).second};
+ IGBPDequeueBufferResponseParcel response{result->first, *result->second};
ctx.WriteBuffer(response.Serialize());
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(RESULT_SUCCESS);