Tracker merger. "There is no "NV" display when change the certain option in NT32"
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 10 Sep 2007 05:39:46 +0000 (05:39 +0000)
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 10 Sep 2007 05:39:46 +0000 (05:39 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3788 6f19259b-4bc3-4df7-8a09-765794883524

IntelFrameworkModulePkg/Universal/SetupBrowserDxe/ProcessOptions.c
IntelFrameworkModulePkg/Universal/SetupBrowserDxe/Ui.c

index a2dc808..c3d5289 100644 (file)
@@ -341,31 +341,32 @@ ProcessOptions (
               //\r
               if (!Tag->Suppress && !Tag->GrayOut) {\r
                 CopyMem (NvRamMap, &Number, MenuOption->ThisTag->StorageWidth);\r
+                break;\r
               }\r
-              break;\r
-            }\r
+            } else {\r
 \r
-            StringPtr = GetToken (PopUp, MenuOption->Handle);\r
+              StringPtr = GetToken (PopUp, MenuOption->Handle);\r
 \r
-            CreatePopUp (GetStringWidth (StringPtr) / 2, 3, &NullCharacter, StringPtr, &NullCharacter);\r
+              CreatePopUp (GetStringWidth (StringPtr) / 2, 3, &NullCharacter, StringPtr, &NullCharacter);\r
 \r
-            do {\r
-              Status = WaitForKeyStroke (&Key);\r
+              do {\r
+                Status = WaitForKeyStroke (&Key);\r
 \r
-              switch (Key.UnicodeChar) {\r
+                switch (Key.UnicodeChar) {\r
 \r
-              case CHAR_CARRIAGE_RETURN:\r
-                //\r
-                // Since the value can be one byte long or two bytes long, do a CopyMem based on StorageWidth\r
-                //\r
-                CopyMem (NvRamMap, &Number, MenuOption->ThisTag->StorageWidth);\r
-                FreePool (StringPtr);\r
-                break;\r
+                case CHAR_CARRIAGE_RETURN:\r
+                  //\r
+                  // Since the value can be one byte long or two bytes long, do a CopyMem based on StorageWidth\r
+                  //\r
+                  CopyMem (NvRamMap, &Number, MenuOption->ThisTag->StorageWidth);\r
+                  FreePool (StringPtr);\r
+                  break;\r
 \r
-              default:\r
-                break;\r
-              }\r
-            } while (Key.UnicodeChar != CHAR_CARRIAGE_RETURN);\r
+                default:\r
+                  break;\r
+                }\r
+              } while (Key.UnicodeChar != CHAR_CARRIAGE_RETURN);\r
+            }\r
           }\r
         }\r
 \r
index dd56cfb..c222a72 100644 (file)
@@ -3020,7 +3020,7 @@ Returns:
       //\r
       // After the repaint operation, we should refresh the highlight.\r
       //\r
-      NewLine = TRUE;\r
+      NewLine    = TRUE;\r
       break;\r
 \r
     case CfUiNoOperation:\r