All pastes #1839721 Raw Edit

phcoder

public text v1 · immutable
#1839721 ·published 2010-03-14 17:52 UTC
rendered paste body
=== modified file 'video/video.c'--- video/video.c	2010-02-07 02:06:33 +0000+++ video/video.c	2010-03-14 17:51:40 +0000@@ -508,7 +508,7 @@ 	  if (err) 	    { 	      suitable = 0;-	      grub_errno = GRUB_ERR_NONE;+	      grub_print_error (); 	    } 	  if ((mode_info.mode_type & modemask) != modevalue) 	    suitable = 0;@@ -541,7 +541,7 @@       /* Finalize adapter.  */       grub_video_adapter_active->fini ();       if (grub_errno != GRUB_ERR_NONE)-	grub_errno = GRUB_ERR_NONE;+	grub_print_error ();        /* Mark active adapter as not set.  */       grub_video_adapter_active = 0;@@ -640,7 +640,7 @@ 	  err = p->init (); 	  if (err != GRUB_ERR_NONE) 	    {-	      grub_errno = GRUB_ERR_NONE;+	      grub_print_error (); 	      continue; 	    } @@ -648,16 +648,18 @@ 	  err = p->setup (width, height, flags, flagmask); 	  if (err != GRUB_ERR_NONE) 	    {+	      grub_print_error (); 	      p->fini ();-	      grub_errno = GRUB_ERR_NONE;+	      grub_print_error (); 	      continue; 	    }  	  err = p->get_info (&mode_info); 	  if (err != GRUB_ERR_NONE) 	    {+	      grub_print_error (); 	      p->fini ();-	      grub_errno = GRUB_ERR_NONE;+	      grub_print_error (); 	      continue; 	    } @@ -671,8 +673,9 @@ 		 && ((GRUB_VIDEO_MODE_TYPE_PURE_TEXT & modevalue) == 0)) 	      : ((flags & modemask) != modevalue)) 	    {+	      grub_print_error (); 	      p->fini ();-	      grub_errno = GRUB_ERR_NONE;+	      grub_print_error (); 	      continue; 	    }