windows.errors: fix #987