Snapshot data = {funcInfo.id, 0};
m_info.v2()->DoStackSnapshot(thrInfo.id, Snapshot::Callback,
COR_PRF_SNAPSHOT_DEFAULT, &data,
- reinterpret_cast<BYTE*>(winContext), sizeof(winContext));
+ reinterpret_cast<BYTE*>(winContext), sizeof(*winContext));
return data.pc;
}
HRESULT hr;
hr = m_info.v2()->DoStackSnapshot(thrInfo.id, Snapshot::Callback,
COR_PRF_SNAPSHOT_DEFAULT, &data,
- reinterpret_cast<BYTE*>(winContext), sizeof(winContext));
+ reinterpret_cast<BYTE*>(winContext), sizeof(*winContext));
if (FAILED(hr) && hr != CORPROF_E_STACKSNAPSHOT_ABORTED)
{
thrInfo.eventChannel.ChIP(0);