projects
/
platform
/
upstream
/
dotnet
/
runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1172956
)
Poison code before deleting the handle.
author
mateoatr
<matorre@microsoft.com>
Mon, 9 Dec 2019 19:30:11 +0000
(19:30 +0000)
committer
mateoatr
<matorre@microsoft.com>
Mon, 9 Dec 2019 19:30:11 +0000
(19:30 +0000)
Keep code consistent.
src/coreclr/src/vm/dllimportcallback.cpp
patch
|
blob
|
history
diff --git
a/src/coreclr/src/vm/dllimportcallback.cpp
b/src/coreclr/src/vm/dllimportcallback.cpp
index
00ad444
..
2f6c009
100644
(file)
--- a/
src/coreclr/src/vm/dllimportcallback.cpp
+++ b/
src/coreclr/src/vm/dllimportcallback.cpp
@@
-965,14
+965,14
@@
void UMEntryThunk::Terminate()
}
CONTRACTL_END;
+ m_code.Poison();
+
if (GetObjectHandle())
{
DestroyLongWeakHandle(GetObjectHandle());
-
this->
m_pObjectHandle = 0;
+ m_pObjectHandle = 0;
}
- m_code.Poison();
-
s_thunkFreeList.AddToList(this);
}