aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/vi/vi.cpp
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2019-07-01 11:10:27 -0400
committerFernandoS27 <fsahmkow27@gmail.com>2019-07-05 15:49:33 -0400
commitf3a39e0c9ce8468859da12e35a52fa088e264d28 (patch)
tree1b8213a87e7cda7ccb5be0828770415d2d78000e /src/core/hle/service/vi/vi.cpp
parentd20ede40b1e9cd0539982fb1feb3b13af3501ea2 (diff)
NVServices: Address Feedback
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);