From 5c94062110ac1c7c6c202afea1fdd4b22beb4804 Mon Sep 17 00:00:00 2001 From: "Dr. Chat" Date: Sun, 27 Dec 2015 17:15:21 -0600 Subject: [PATCH] XFile setup async_event_ in the restore constructor --- src/xenia/kernel/xfile.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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?