mirror of
https://github.com/reactos/reactos.git
synced 2026-06-20 12:22:25 +08:00
Check if dwBandID is NULL before getting band object (#6738)
fixes CORE-18807 'Our explorer.exe ATL-asserts when executed on XPSP3'
which most likely got unhidden when we enabled the ATL-assertions in
0.4.15-dev-5023-g 55343f04b0
This commit is contained in:
committed by
GitHub
parent
b1de3bfb2b
commit
ea34ecc9ec
@@ -459,7 +459,7 @@ public:
|
||||
/* Enumerate all bands */
|
||||
while (SUCCEEDED(m_BandSite->EnumBands(uBand, &dwBandID)))
|
||||
{
|
||||
if (SUCCEEDED(m_BandSite->GetBandObject(dwBandID, IID_PPV_ARG(IPersist, &pBand))))
|
||||
if (dwBandID && SUCCEEDED(m_BandSite->GetBandObject(dwBandID, IID_PPV_ARG(IPersist, &pBand))))
|
||||
{
|
||||
if (SUCCEEDED(pBand->GetClassID(&BandCLSID)))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user