Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions src/coreclr/vm/interoplibinterface_comwrappers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1169,11 +1169,7 @@ namespace InteropLibImports
bool isValid = false;
::OBJECTHANDLE objectHandle = static_cast<::OBJECTHANDLE>(handle);

{
// Switch to cooperative mode so the handle can be safely inspected.
GCX_COOP_THREAD_EXISTS(GET_THREAD());
isValid = ObjectFromHandle(objectHandle) != NULL;
}
isValid = ObjectHandleIsNull(objectHandle) == TRUE;

return isValid;
}
Expand Down