Fixing most remaining C++ warnings in clang.

This commit is contained in:
Ben Vanik
2016-01-01 18:37:33 +00:00
parent e029c9abdc
commit b02ca62388
11 changed files with 53 additions and 40 deletions

View File

@@ -1145,12 +1145,12 @@ object_ref<XThread> XThread::Restore(KernelState* kernel_state,
thread->kernel_state_ = kernel_state;
if (!thread->RestoreObject(stream)) {
return false;
return nullptr;
}
if (stream->Read<uint32_t>() != 'THRD') {
XELOGE("Could not restore XThread - invalid magic!");
return false;
return nullptr;
}
XELOGD("XThread %.8X", thread->handle());