Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit a37369a

Browse files
authored
Cast lp1 to the ScanContext; lp2 is a function pointer. (#15433)
1 parent 71dc688 commit a37369a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gc/objecthandle.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ void CALLBACK AsyncPinObject(_UNCHECKED_OBJECTREF *pObjRef, uintptr_t *pExtraInf
285285
Object **pRef = (Object **)pObjRef;
286286
_ASSERTE(lp2);
287287
promote_func* callback = (promote_func*)lp2;
288-
callback(pRef, (ScanContext *)lp2, GC_CALL_PINNED);
288+
callback(pRef, (ScanContext *)lp1, GC_CALL_PINNED);
289289
Object* pPinnedObj = *pRef;
290290
if (!HndIsNullOrDestroyedHandle(pPinnedObj))
291291
{

0 commit comments

Comments
 (0)