/** @file\r
\r
-Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions\r
//\r
// Restore data\r
//\r
- Status = RestoreLockBox (\r
- &LockBoxParameterRestore->Guid,\r
- (VOID *)(UINTN)LockBoxParameterRestore->Buffer,\r
- (UINTN *)&LockBoxParameterRestore->Length\r
- );\r
+ if ((LockBoxParameterRestore->Length == 0) && (LockBoxParameterRestore->Buffer == 0)) {\r
+ Status = RestoreLockBox (\r
+ &LockBoxParameterRestore->Guid,\r
+ NULL,\r
+ NULL\r
+ );\r
+ } else {\r
+ Status = RestoreLockBox (\r
+ &LockBoxParameterRestore->Guid,\r
+ (VOID *)(UINTN)LockBoxParameterRestore->Buffer,\r
+ (UINTN *)&LockBoxParameterRestore->Length\r
+ );\r
+ }\r
LockBoxParameterRestore->Header.ReturnStatus = (UINT64)Status;\r
return ;\r
}\r