[GetEcmInfo] fix possible BSOD.