diff --git a/src/xenia/kernel/xfile.cc b/src/xenia/kernel/xfile.cc index 8de977a88..03e4a6a0d 100644 --- a/src/xenia/kernel/xfile.cc +++ b/src/xenia/kernel/xfile.cc @@ -23,7 +23,9 @@ XFile::XFile(KernelState* kernel_state, vfs::File* file) async_event_ = threading::Event::CreateAutoResetEvent(false); } -XFile::XFile() : XObject(kTypeFile) {} +XFile::XFile() : XObject(kTypeFile) { + async_event_ = threading::Event::CreateAutoResetEvent(false); +} XFile::~XFile() { // TODO(benvanik): signal that the file is closing?