| 60 | } |
| 61 | |
| 62 | void DetourTransaction::update_thread(unique_handle_failfast hThread) noexcept |
| 63 | { |
| 64 | FAIL_FAST_IF_WIN32_ERROR(DetourUpdateThread(hThread.get())); |
| 65 | |
| 66 | const auto mem = HeapAlloc(s_Heap.get(), 0, sizeof(node)); |
| 67 | FAIL_FAST_LAST_ERROR_IF_NULL(mem); |
| 68 | |
| 69 | m_Head.reset(new (mem) node |
| 70 | { |
| 71 | .thread = std::move(hThread), |
| 72 | .next = std::move(m_Head) |
| 73 | }); |
| 74 | } |
| 75 | |
| 76 | DetourTransaction::DetourTransaction() noexcept |
| 77 | { |