Revert untested changes that make resize crash on XP.