]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg/DriverSample: Skip the character "&" before "OFFSET="
authorDandan Bi <dandan.bi@intel.com>
Tue, 9 Aug 2016 01:52:18 +0000 (09:52 +0800)
committerStar Zeng <star.zeng@intel.com>
Thu, 11 Aug 2016 07:38:43 +0000 (15:38 +0800)
When comparing the L"OFFSET=" with the ConfigResp string to find
all the "OFFSET=" in ConfigResp, should skip the character "&"
before "OFFSET=" in ConfigResp string.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c

index 9c5d4bb61e7d82e1988a73c277e875e0d897f978..ea6b124f10ba1e4a398311a12fcc64105fdf4d6d 100644 (file)
@@ -777,6 +777,11 @@ AppendAltCfgString (
     }\r
     StringPtr += Length;\r
 \r
+    //\r
+    // Skip the character "&" before "OFFSET".\r
+    //\r
+    StringPtr ++;\r
+\r
     //\r
     // Calculate Value and convert it to hex string.\r
     //\r