]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Change functional static variable to Global variable. No STATIC modifier is recommend...
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 31 Oct 2008 02:07:08 +0000 (02:07 +0000)
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 31 Oct 2008 02:07:08 +0000 (02:07 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6314 6f19259b-4bc3-4df7-8a09-765794883524

Nt32Pkg/MiscSubClassPlatformDxe/MiscSystemManufacturerFunction.c

index fffaa364e97bb861f8dcfdb91d228b65eafef091..39c12cf482cd3932aa7b28bdde9a62c49044a6b6 100644 (file)
@@ -22,6 +22,8 @@ Abstract:
 \r
 #include "MiscSubclassDriver.h"\r
 \r
+BOOLEAN  mDone = FALSE;\r
+\r
 //\r
 //\r
 //\r
@@ -69,8 +71,6 @@ Returns:
       LogRecordData was NULL.\r
 --*/\r
 {\r
-  STATIC BOOLEAN  Done = FALSE;\r
-\r
   //\r
   // First check for invalid parameters.\r
   //\r
@@ -86,7 +86,7 @@ Returns:
   //\r
   // Is this the first time through this function?\r
   //\r
-  if (!Done) {\r
+  if (!mDone) {\r
     //\r
     // Yes, this is the first time.  Inspect/Change the contents of the\r
     // RecordData structure.\r
@@ -100,19 +100,19 @@ Returns:
     //\r
     // ((EFI_MISC_SYSTEM_MANUFACTURER_DATA *)RecordData)->SystemWakeupType = %%TBD\r
     //\r
-    // Set Done flag to TRUE for next pass through this function.\r
+    // Set mDone flag to TRUE for next pass through this function.\r
     // Set *LogRecordData to TRUE so data will get logged to Data Hub.\r
     //\r
-    Done            = TRUE;\r
+    mDone            = TRUE;\r
     *LogRecordData  = TRUE;\r
   } else {\r
     //\r
-    // No, this is the second time.  Reset the state of the Done flag\r
+    // No, this is the second time.  Reset the state of the mDone flag\r
     // to FALSE and tell the data logger that there is no more data\r
     // to be logged for this record type.  If any memory allocations\r
     // were made by earlier passes, they must be released now.\r
     //\r
-    Done            = FALSE;\r
+    mDone            = FALSE;\r
     *LogRecordData  = FALSE;\r
   }\r
 \r