[MessageBox] fix possible BSOD.