diff --git a/Samples/Win7Samples/multimedia/directshow/capture/amcap/amcap.cpp b/Samples/Win7Samples/multimedia/directshow/capture/amcap/amcap.cpp index 54407864..dbfc60c6 100644 --- a/Samples/Win7Samples/multimedia/directshow/capture/amcap/amcap.cpp +++ b/Samples/Win7Samples/multimedia/directshow/capture/amcap/amcap.cpp @@ -2661,7 +2661,7 @@ void ChooseDevices(IMoniker *pmVideo, IMoniker *pmAudio) break; CheckMenuItem(GetMenu(ghwndApp), MENU_ADEVICE0 + i, - (S_OK == gcap.rgpmAudioMenu[i]->IsEqual(gcap.pmAudio)) ? MF_CHECKED : MF_UNCHECKED); + (gcap.pmAudio && S_OK == gcap.rgpmAudioMenu[i]->IsEqual(gcap.pmAudio)) ? MF_CHECKED : MF_UNCHECKED); } // Put the video driver name in the status bar - if the filter supports