Fixed crash due to invaild ico file and games for windows #632