Update current_thread_id when setting current thread (#340)

This commit is contained in:
Jason Shirk
2020-11-23 13:39:03 -08:00
committed by GitHub
parent 2e276de0f5
commit 32ba86be9d

View File

@ -225,6 +225,7 @@ impl Target {
}
pub fn set_current_thread(&mut self, thread_id: DWORD) {
self.current_thread_id = thread_id;
self.current_thread_handle = self.thread_info.get(&thread_id).unwrap().handle;
}