Reviewed-by: Liming Gao <[email protected]>

> -----Original Message-----
> From: Bi, Dandan
> Sent: Wednesday, August 10, 2016 11:11 AM
> To: [email protected]
> Cc: Gao, Liming <[email protected]>; Dong, Eric <[email protected]>
> Subject: [patch] 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 <[email protected]>
> Cc: Eric Dong <[email protected]>
> Contributed-under: TianoCore Contribution Agreement 1.0
> Signed-off-by: Dandan Bi <[email protected]>
> Reviewed-by: Eric Dong <[email protected]>
> ---
>  MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c
> b/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c
> index 9c5d4bb..ea6b124 100644
> --- a/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c
> +++ b/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c
> @@ -776,10 +776,15 @@ AppendAltCfgString (
>        return;
>      }
>      StringPtr += Length;
> 
>      //
> +    // Skip the character "&" before "OFFSET".
> +    //
> +    StringPtr ++;
> +
> +    //
>      // Calculate Value and convert it to hex string.
>      //
>      if (Offset + Width > BlockSize) {
>        return;
>      }
> --
> 1.9.5.msysgit.1

_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to