[Kernel] Ensure file mutex is initialized

This commit is contained in:
Herman S. 2025-10-13 02:33:21 +09:00
parent 81dd887e74
commit 137baa2b9f

View file

@ -24,7 +24,7 @@ XFile::XFile(KernelState* kernel_state, vfs::File* file, bool synchronous)
assert_not_null(async_event_);
}
XFile::XFile() : XObject(kObjectType) {
XFile::XFile() : XObject(kObjectType), completion_port_lock_() {
async_event_ = threading::Event::CreateAutoResetEvent(false);
assert_not_null(async_event_);
}