WINDOWS - added more error handling in win_display.c