diff options
| author | Maxime Mansiet <AirKyzzZ@users.noreply.github.com> | 2026-11-23 02:59:55 +0100 |
|---|---|---|
| committer | Maxime Mansiet <AirKyzzZ@users.noreply.github.com> | 2026-11-23 02:59:55 +0100 |
| commit | 399b30f69b7105593e92c06499cdd8cc618edbb9 (patch) | |
| tree | 245859df1b2b17dd9efbc3d304c95f691d8cfd4a /runtime/shims/gameinput.cpp | |
| parent | 03b09a086592a197db64d91655c6e65c30764d96 (diff) | |
gameinput: GetRawReport holds hid_mu while it reads the raw reports
Signed-off-by: Maxime Mansiet <AirKyzzZ@users.noreply.github.com>
Diffstat (limited to 'runtime/shims/gameinput.cpp')
| -rw-r--r-- | runtime/shims/gameinput.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/shims/gameinput.cpp b/runtime/shims/gameinput.cpp index 69707f75a..7a915048f 100644 --- a/runtime/shims/gameinput.cpp +++ b/runtime/shims/gameinput.cpp | |||
| @@ -647,6 +647,7 @@ bool Reading::GetRawReport(void** report) { | |||
| 647 | if (!report) return false; | 647 | if (!report) return false; |
| 648 | *report = nullptr; | 648 | *report = nullptr; |
| 649 | if (!s_.has_raw) return false; | 649 | if (!s_.has_raw) return false; |
| 650 | std::lock_guard lock(device_->hid_mu); | ||
| 650 | const GameInputRawDeviceReportInfo* info = device_->find_raw(GameInputRawInputReport, s_.raw_id); | 651 | const GameInputRawDeviceReportInfo* info = device_->find_raw(GameInputRawInputReport, s_.raw_id); |
| 651 | if (!info) return false; | 652 | if (!info) return false; |
| 652 | *report = static_cast<IGameInputRawDeviceReport*>(new RawReport(device_, *info, s_.raw.data(), s_.raw.size())); | 653 | *report = static_cast<IGameInputRawDeviceReport*>(new RawReport(device_, *info, s_.raw.data(), s_.raw.size())); |