Merge branch 'master' into d3d12

This commit is contained in:
Triang3l
2018-11-18 12:13:26 +03:00
4 changed files with 93 additions and 77 deletions

View File

@@ -35,6 +35,8 @@ class App {
virtual X_RESULT DispatchMessageSync(uint32_t message, uint32_t buffer_ptr,
uint32_t buffer_length) = 0;
virtual ~App() = default;
protected:
App(KernelState* kernel_state, uint32_t app_id);

View File

@@ -42,6 +42,12 @@ void RtlRaiseException(pointer_t<X_EXCEPTION_RECORD> record) {
reinterpret_cast<X_THREADNAME_INFO*>(&record->exception_information[0]);
assert_true(thread_info->type == 0x1000);
if (!thread_info->name_ptr) {
XELOGD("SetThreadName called with null name_ptr");
return;
}
auto name =
kernel_memory()->TranslateVirtual<const char*>(thread_info->name_ptr);