/** @file\r
Implementation of Mtftp drivers.\r
\r
-Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
MtftpSb->Signature = MTFTP4_SERVICE_SIGNATURE;\r
MtftpSb->ServiceBinding = gMtftp4ServiceBindingTemplete;\r
- MtftpSb->InDestory = FALSE;\r
+ MtftpSb->InDestroy = FALSE;\r
MtftpSb->ChildrenNum = 0;\r
InitializeListHead (&MtftpSb->Children);\r
\r
\r
MtftpSb = MTFTP4_SERVICE_FROM_THIS (ServiceBinding);\r
\r
- if (MtftpSb->InDestory) {\r
+ if (MtftpSb->InDestroy) {\r
return EFI_SUCCESS;\r
}\r
\r
\r
if (NumberOfChildren == 0) {\r
\r
- MtftpSb->InDestory = TRUE;\r
+ MtftpSb->InDestroy = TRUE;\r
\r
gBS->UninstallProtocolInterface (\r
NicHandle,\r
InitializeListHead (&Instance->Link);\r
CopyMem (&Instance->Mtftp4, &gMtftp4ProtocolTemplate, sizeof (Instance->Mtftp4));\r
Instance->State = MTFTP4_STATE_UNCONFIGED;\r
- Instance->InDestory = FALSE;\r
+ Instance->InDestroy = FALSE;\r
Instance->Service = MtftpSb;\r
\r
InitializeListHead (&Instance->Blocks);\r
\r
\r
/**\r
- Destory one of the service binding's child.\r
+ Destroy one of the service binding's child.\r
\r
@param This The service binding instance\r
- @param ChildHandle The child handle to destory\r
+ @param ChildHandle The child handle to destroy\r
\r
@retval EFI_INVALID_PARAMETER The parameter is invaid.\r
- @retval EFI_UNSUPPORTED The child may have already been destoried.\r
- @retval EFI_SUCCESS The child is destoried and removed from the\r
+ @retval EFI_UNSUPPORTED The child may have already been destroyed.\r
+ @retval EFI_SUCCESS The child is destroyed and removed from the\r
parent's child list.\r
\r
**/\r
return EFI_INVALID_PARAMETER;\r
}\r
\r
- if (Instance->InDestory) {\r
+ if (Instance->InDestroy) {\r
return EFI_SUCCESS;\r
}\r
\r
- Instance->InDestory = TRUE;\r
+ Instance->InDestroy = TRUE;\r
\r
//\r
// Close the Udp4 protocol.\r
);\r
\r
if (EFI_ERROR (Status)) {\r
- Instance->InDestory = FALSE;\r
+ Instance->InDestroy = FALSE;\r
return Status;\r
}\r
\r