[ros-diffs] [fireball] 22513: Sync with Wine. Based on James Tabor's patch, with little modifications.