summaryrefslogtreecommitdiff
path: root/src/vm/threads.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/vm/threads.cpp')
-rw-r--r--src/vm/threads.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/vm/threads.cpp b/src/vm/threads.cpp
index 9af5aa4bcc..a126d1c816 100644
--- a/src/vm/threads.cpp
+++ b/src/vm/threads.cpp
@@ -5075,11 +5075,10 @@ void Thread::SafeUpdateLastThrownObject(void)
EX_TRY
{
IGCHandleTable *pHandleTable = GCHandleTableUtilities::GetGCHandleTable();
- void* table = pHandleTable->GetHandleTableForHandle(hThrowable);
// Creating a duplicate handle here ensures that the AD of the last thrown object
// matches the domain of the current throwable.
- OBJECTHANDLE duplicateHandle = pHandleTable->CreateHandleOfType(table, OBJECTREFToObject(ObjectFromHandle(hThrowable)), HNDTYPE_DEFAULT);
+ OBJECTHANDLE duplicateHandle = pHandleTable->CreateDuplicateHandle(hThrowable);
SetLastThrownObjectHandle(duplicateHandle);
}
EX_CATCH