These should be * sizeof(WCHAR), not+ sizeof(WCHAR). As a result this function won't copy the full string over, rather it will copy a small section of it and won't null-terminate it correctly.
This function is used in CBasePropertyPage::GetPageInfo in DirectShow, causing any property pages by custom DirectShow filters to have their titles render incorrectly.
AMGetWideString in Samples/Win7Samples/multimedia/directshow/baseclasses/wxutil.cpp is bugged:
There's two lines that are problematic:
These should be
* sizeof(WCHAR)
, not+ sizeof(WCHAR)
. As a result this function won't copy the full string over, rather it will copy a small section of it and won't null-terminate it correctly.This function is used in
CBasePropertyPage::GetPageInfo
in DirectShow, causing any property pages by custom DirectShow filters to have their titles render incorrectly.