2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

Merge pull request #3785 from ogniK5377/set-buffer-count-unit

vi: Don't let uninitialized data pass as a response for SetBufferCount
This commit is contained in:
bunnei 2020-04-27 17:10:28 -04:00 committed by GitHub
commit 4dca2298f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -267,7 +267,7 @@ protected:
private: private:
struct Data { struct Data {
u32_le unk_0; u32_le unk_0{};
}; };
Data data{}; Data data{};
@ -614,6 +614,14 @@ private:
ctx.WriteBuffer(response.Serialize()); ctx.WriteBuffer(response.Serialize());
break; 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: default:
ASSERT_MSG(false, "Unimplemented"); ASSERT_MSG(false, "Unimplemented");
} }