summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-04-27 17:10:28 -0400
committerGitHub <noreply@github.com>2020-04-27 17:10:28 -0400
commit4dca2298f9563be8553a327d815a1d9565f92505 (patch)
treef685cce1be124fcf6b0458441ecb66b5d0d1c4bf /src
parent1517cba8ca24005e8ea521a539b0e2a1142dfbbd (diff)
parent03a6f3b0f424ad2e4f0dc53e38b325cb1da6a91c (diff)
Merge pull request #3785 from ogniK5377/set-buffer-count-unit
vi: Don't let uninitialized data pass as a response for SetBufferCount
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/vi/vi.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/core/hle/service/vi/vi.cpp b/src/core/hle/service/vi/vi.cpp
index 7f109f4eb..9390ca83d 100644
--- a/src/core/hle/service/vi/vi.cpp
+++ b/src/core/hle/service/vi/vi.cpp
@@ -267,7 +267,7 @@ protected:
private:
struct Data {
- u32_le unk_0;
+ u32_le unk_0{};
};
Data data{};
@@ -614,6 +614,14 @@ private:
ctx.WriteBuffer(response.Serialize());
break;
}
+ case TransactionId::SetBufferCount: {
+ LOG_WARNING(Service_VI, "(STUBBED) called, transaction=SetBufferCount");
+ [[maybe_unused]] const auto buffer = ctx.ReadBuffer();
+
+ IGBPEmptyResponseParcel response{};
+ ctx.WriteBuffer(response.Serialize());
+ break;
+ }
default:
ASSERT_MSG(false, "Unimplemented");
}