]> git.proxmox.com Git - mirror_edk2.git/blobdiff - InOsEmuPkg/EmuSnpDxe/EmuSnpDxe.c
Clarify the requirements for the Destination parameter of UnicodeStrToAsciiStr.
[mirror_edk2.git] / InOsEmuPkg / EmuSnpDxe / EmuSnpDxe.c
index a83fde8c9cf3e1358646dc8cd07cc04068c58d04..4432218b511e0500ba3773ac82c89af3341d2d46 100644 (file)
@@ -1,6 +1,7 @@
 /** @file\r
 \r
  Copyright (c) 2010, Apple, Inc. All rights reserved.<BR>\r
+ Copyright (c) 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 of the BSD License\r
@@ -666,10 +667,11 @@ EmuSnpDriverBindingStart (
   MAC_ADDR_DEVICE_PATH        Node;\r
   EFI_DEVICE_PATH_PROTOCOL    *ParentDevicePath;\r
 \r
+  Private = NULL;\r
+\r
   //\r
   // Grab the protocols we need\r
   //\r
-  \r
   Status = gBS->OpenProtocol(\r
                   ControllerHandle,\r
                   &gEfiDevicePathProtocolGuid,\r
@@ -839,7 +841,6 @@ EmuSnpDriverBindingStop (
   EFI_STATUS                  Status;\r
   EMU_SNP_PRIVATE_DATA        *Private = NULL;\r
   EFI_SIMPLE_NETWORK_PROTOCOL *Snp;\r
-  EFI_DEVICE_PATH_PROTOCOL    *ParentDevicePath;\r
 \r
   //\r
   // Complete all outstanding transactions to Controller.\r