You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a typo in "CAnalyzerPage::OnApplyChanges" which is using a wrong define to initialize the capture configuration of the analyzer filter. This may lead to that the analyzer filter does not capture any samples if the capture options are changed with the checkboxes of that dialog.
HRESULT CAnalyzerPage::OnApplyChanges()
{
UpdateData();
filter->put_Enabled(IsDlgButtonChecked(IDC_ANALYZER_ENABLED) ? VARIANT_TRUE : VARIANT_FALSE);
ASSERT(m_nPreviewByteCount <= 0xFFFF);
filter->put_PreviewSampleByteCount((unsigned short) m_nPreviewByteCount);
int captureConfig = SCF_ALL; // <-- Should be "SCF_All" (lowercase "l" characters)
Please note the "SCF_ALL" define (uppercase "L" characters), it does not map to the supposed define "SCF_All" (lowercase "L" characters) from "StatisticCaptureFlags".
Another small typo is in "CAnalyzerPage::GetEntryString()".
case SRK_BF_Run: val = _T("IBaseFilter:Run:"); break;
should read as case SRK_BF_Run: val = _T("IBaseFilter::Run"); break;
Kind regards
The text was updated successfully, but these errors were encountered:
MarkusHeiling
changed the title
Wrong initialization of Analyer filter in CAnalyzerPage due to a typo
Wrong initialization of Analyzer filter in CAnalyzerPage due to a typo
Mar 2, 2016
There is a typo in "CAnalyzerPage::OnApplyChanges" which is using a wrong define to initialize the capture configuration of the analyzer filter. This may lead to that the analyzer filter does not capture any samples if the capture options are changed with the checkboxes of that dialog.
Please note the "SCF_ALL" define (uppercase "L" characters), it does not map to the supposed define "SCF_All" (lowercase "L" characters) from "StatisticCaptureFlags".
Another small typo is in "CAnalyzerPage::GetEntryString()".
case SRK_BF_Run: val = _T("IBaseFilter:Run:"); break;
should read as
case SRK_BF_Run: val = _T("IBaseFilter::Run"); break;
Kind regards
The text was updated successfully, but these errors were encountered: