diff options
| author | Sepalani <sepalani@hotmail.fr> | 2023-11-19 01:17:46 +0400 |
|---|---|---|
| committer | Sepalani <sepalani@hotmail.fr> | 2023-11-23 22:07:44 +0400 |
| commit | 91020ac4faa84ce1731eb5fd80b4e07b7f7331f7 (patch) | |
| tree | e7aef6ba3cd4d79cf1c7ad8e5dca7015e08b2f79 /Source/Core/Common/PcapFile.cpp | |
| parent | aa1311cd78f66069a115707fbe3021f51b961342 (diff) | |
BBA/HLE: Fix random PCAP file corruption
Concurrency between RecvHandlePacket and SendFromDirectFIFO
Diffstat (limited to 'Source/Core/Common/PcapFile.cpp')
| -rw-r--r-- | Source/Core/Common/PcapFile.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/Core/Common/PcapFile.cpp b/Source/Core/Common/PcapFile.cpp index 71fcdc9eee..0f248ce1b5 100644 --- a/Source/Core/Common/PcapFile.cpp +++ b/Source/Core/Common/PcapFile.cpp @@ -49,6 +49,7 @@ void PCAP::AddHeader(u32 link_type) m_fp->WriteBytes(&hdr, sizeof(hdr)); } +// Not thread-safe, concurrency between multiple calls to IOFile::WriteBytes. void PCAP::AddPacket(const u8* bytes, size_t size) { std::chrono::system_clock::time_point now(std::chrono::system_clock::now()); |
