From: Aleksei Vereshchagin Date: Mon, 11 Dec 2017 17:26:22 +0000 (+0300) Subject: Fix incorrect sizeof for winContext X-Git-Tag: submit/tizen/20180619.075036~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c8b3edc27a3b4bf28f33e5a08dca772d33285319;p=sdk%2Ftools%2Fcoreprofiler.git Fix incorrect sizeof for winContext --- diff --git a/src/trace/executiontrace.cpp b/src/trace/executiontrace.cpp index f2836c3..f1acf1e 100644 --- a/src/trace/executiontrace.cpp +++ b/src/trace/executiontrace.cpp @@ -223,7 +223,7 @@ UINT_PTR ExecutionTrace::GetCurrentManagedIP( Snapshot data = {funcInfo.id, 0}; m_info.v2()->DoStackSnapshot(thrInfo.id, Snapshot::Callback, COR_PRF_SNAPSHOT_DEFAULT, &data, - reinterpret_cast(winContext), sizeof(winContext)); + reinterpret_cast(winContext), sizeof(*winContext)); return data.pc; } @@ -304,7 +304,7 @@ void ExecutionTrace::RestoreManagedIP( HRESULT hr; hr = m_info.v2()->DoStackSnapshot(thrInfo.id, Snapshot::Callback, COR_PRF_SNAPSHOT_DEFAULT, &data, - reinterpret_cast(winContext), sizeof(winContext)); + reinterpret_cast(winContext), sizeof(*winContext)); if (FAILED(hr) && hr != CORPROF_E_STACKSNAPSHOT_ABORTED) { thrInfo.eventChannel.ChIP(0);