From 5a15736588938f47c3e0c70c26361f3017a395ef Mon Sep 17 00:00:00 2001 From: lgao4 Date: Thu, 4 Mar 2010 10:04:21 +0000 Subject: [PATCH] Fix wrong BufferSize for Configuration data. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10192 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigImpl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigImpl.c b/MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigImpl.c index 656291618f..2c4e0249fc 100644 --- a/MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigImpl.c +++ b/MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigImpl.c @@ -61,7 +61,7 @@ VENDOR_DEVICE_PATH mHiiVendorDevicePathNode = { @retval EFI_SUCCESS The Results is filled with the requested values. @retval EFI_OUT_OF_RESOURCES Not enough memory to store the results. - @retval EFI_INVALID_PARAMETER Request is NULL, illegal syntax, or unknown name. + @retval EFI_INVALID_PARAMETER Request is illegal syntax, or unknown name. @retval EFI_NOT_FOUND Routing data doesn't match any storage in this driver. @@ -111,7 +111,7 @@ VlanExtractConfig ( // PrivateData = VLAN_CONFIG_PRIVATE_DATA_FROM_THIS (This); ZeroMem (&Configuration, sizeof (VLAN_CONFIGURATION)); - BufferSize = sizeof (VLAN_CONFIG_PRIVATE_DATA); + BufferSize = sizeof (Configuration); ConfigRequest = Request; if ((Request == NULL) || (StrStr (Request, L"OFFSET") == NULL)) { //