summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/AutoGen/UniClassObject.py
diff options
context:
space:
mode:
authorYonghong Zhu <yonghong.zhu@intel.com>2016-05-10 17:46:23 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2016-05-11 10:09:08 +0800
commitad319b9307aaf37ffaf27890ae03dcbfd12087ce (patch)
tree33a1ff3ff1e284ddcaf897a57c7e51b68d7de6ad /BaseTools/Source/Python/AutoGen/UniClassObject.py
parent070827be5a5727c736acf5d645722be073640952 (diff)
downloadedk2-ad319b9307aaf37ffaf27890ae03dcbfd12087ce.tar.gz
edk2-ad319b9307aaf37ffaf27890ae03dcbfd12087ce.tar.bz2
edk2-ad319b9307aaf37ffaf27890ae03dcbfd12087ce.zip
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/Source/Python/AutoGen/UniClassObject.py')
-rw-r--r--BaseTools/Source/Python/AutoGen/UniClassObject.py2
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: