Fixed crashes with WM_GETDLGCODE translation.