diff options
author | Yonghong Zhu <yonghong.zhu@intel.com> | 2016-05-10 17:46:23 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2016-05-11 10:09:08 +0800 |
commit | ad319b9307aaf37ffaf27890ae03dcbfd12087ce (patch) | |
tree | 33a1ff3ff1e284ddcaf897a57c7e51b68d7de6ad /BaseTools | |
parent | 070827be5a5727c736acf5d645722be073640952 (diff) | |
download | edk2-platforms-ad319b9307aaf37ffaf27890ae03dcbfd12087ce.tar.xz |
BaseTools: fix a bug for uni file \x####\ format handling
It should start from the last '\x' position + 1 to find next '\x'
character.
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools')
-rw-r--r-- | BaseTools/Source/Python/AutoGen/UniClassObject.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/AutoGen/UniClassObject.py b/BaseTools/Source/Python/AutoGen/UniClassObject.py index d28fd3a1ea..183b2b2337 100644 --- a/BaseTools/Source/Python/AutoGen/UniClassObject.py +++ b/BaseTools/Source/Python/AutoGen/UniClassObject.py @@ -444,7 +444,7 @@ class UniFileClassObject(object): Line = Line[0 : StartPos] + UniStr + EndStr
else:
Line = Line[0 : StartPos] + UniStr + EndStr[1:]
- StartPos = Line.find(u'\\x', StartPos)
+ StartPos = Line.find(u'\\x', StartPos + 1)
IncList = gIncludePattern.findall(Line)
if len(IncList) == 1:
|