[SoftwareTools] fix possible BSOD.