Revision: 15170
          http://sourceforge.net/p/edk2/code/15170
Author:   ydong10
Date:     2014-01-23 02:00:15 +0000 (Thu, 23 Jan 2014)
Log Message:
-----------
Update password process logic, if password without interactive attribute, the 
first byte of buffer is zero means this password not has preexist value.

Signed-off-by: Eric Dong <[email protected]>
Reviewed-by: Liming Gao <[email protected]>

Modified Paths:
--------------
    trunk/edk2/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c

Modified: trunk/edk2/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c
===================================================================
--- trunk/edk2/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c   2014-01-23 
01:57:04 UTC (rev 15169)
+++ trunk/edk2/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c   2014-01-23 
02:00:15 UTC (rev 15170)
@@ -1,7 +1,7 @@
 /** @file
 Entry and initialization module for the browser.
 
-Copyright (c) 2007 - 2013, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>
 This program and the accompanying materials
 are licensed and made available under the terms and conditions of the BSD 
License
 which accompanies this distribution.  The full text of the license may be 
found at
@@ -4673,7 +4673,21 @@
     if (PasswordString == NULL) {
       return EFI_SUCCESS;
     } 
-    
+
+    //
+    // Check whether has preexisted password.
+    //
+    if (PasswordString[0] == 0) {
+      if (*((CHAR16 *) Question->BufferValue) == 0) {
+        return EFI_SUCCESS;
+      } else {
+        return EFI_NOT_READY;
+      }
+    }
+
+    //
+    // Check whether the input password is same as preexisted password.
+    //
     if (StrnCmp (PasswordString, (CHAR16 *) Question->BufferValue, 
Question->StorageWidth/sizeof (CHAR16)) == 0) {
       return EFI_SUCCESS;
     } else {

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to