[AC21.4] Avoid a crash in Cygwin when clicking File -> Print under Win32