The issue is that the string 'LPC' starts with the 'L' character and
this is being confused with L" or L' for a Unicode string or Unicode
character.
Fixes:https://bugzilla.tianocore.org/show_bug.cgi?id=831
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
else:\r
Oprand1,Size = ParseFieldValue('"' + Oprand1 + '"')\r
if type(Oprand2) == type(''):\r
else:\r
Oprand1,Size = ParseFieldValue('"' + Oprand1 + '"')\r
if type(Oprand2) == type(''):\r
- if Oprand2[0] in ['"', "'", 'L'] or Oprand2.startswith('UINT'):\r
+ if Oprand2[0] in ['"', "'"] or Oprand2.startswith('L"') or Oprand2.startswith("L'") or Oprand2.startswith('UINT'):\r
Oprand2, Size = ParseFieldValue(Oprand2)\r
else:\r
Oprand2, Size = ParseFieldValue('"' + Oprand2 + '"')\r
Oprand2, Size = ParseFieldValue(Oprand2)\r
else:\r
Oprand2, Size = ParseFieldValue('"' + Oprand2 + '"')\r