Skip to content

Commit 2e8d17d

Browse files
committed
1.2.5.1 Adjusted: Error Object
1 parent 99b1519 commit 2e8d17d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

tsc64/Resource.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
#define VER_Y 1
77
#define VER_M 2
88
#define VER_D 5
9-
#define VER_Z 0
9+
#define VER_Z 1

tsc64/tsc64.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,6 +1021,7 @@ STDMETHODIMP CTScriptControl::raw_Reset()
10211021
SafeRelease(&m_pActiveScript);
10221022
SafeRelease(&m_pEventSink);
10231023
Clear();
1024+
m_pError->raw_Clear();
10241025
return m_bsLang ? S_OK : SetScriptError(1024);
10251026
}
10261027

@@ -1782,6 +1783,7 @@ STDMETHODIMP CteActiveScriptSite::OnScriptError(IActiveScriptError *pscripterror
17821783
teClearExceptInfo(pei);
17831784
if SUCCEEDED(pscripterror->GetExceptionInfo(pei)) {
17841785
m_hr = pei->scode;
1786+
m_pSC->m_hr = m_hr;
17851787
DWORD dwSourceContext = 0;
17861788
pscripterror->GetSourcePosition(&dwSourceContext, &m_pSC->m_pError->m_ulLine, &m_pSC->m_pError->m_lColumn);
17871789
teSysFreeString(&m_pSC->m_pError->m_bsText);

0 commit comments

Comments
 (0)