diff options
author | Dandan Bi <dandan.bi@intel.com> | 2016-08-09 09:52:18 +0800 |
---|---|---|
committer | Star Zeng <star.zeng@intel.com> | 2016-08-11 15:38:43 +0800 |
commit | bfaa3b5b7fad475355ef28bb96749d2410ef75b0 (patch) | |
tree | 16adc0e08f25e45038aa18b56a49d75358337a1d /MdeModulePkg | |
parent | 6e227fb5d8490df896ae6e938d16d50137471fbd (diff) | |
download | edk2-platforms-bfaa3b5b7fad475355ef28bb96749d2410ef75b0.tar.xz |
MdeModulePkg/DriverSample: Skip the character "&" before "OFFSET="
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>
Diffstat (limited to 'MdeModulePkg')
-rw-r--r-- | MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c b/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c index 9c5d4bb61e..ea6b124f10 100644 --- a/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c +++ b/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c @@ -778,6 +778,11 @@ AppendAltCfgString ( StringPtr += Length;
//
+ // Skip the character "&" before "OFFSET".
+ //
+ StringPtr ++;
+
+ //
// Calculate Value and convert it to hex string.
//
if (Offset + Width > BlockSize) {
|