Index: core/fpdfdoc/cpdf_interform.cpp |
diff --git a/core/fpdfdoc/cpdf_interform.cpp b/core/fpdfdoc/cpdf_interform.cpp |
index d567e09e82f96f68467a0ad6216ebfb4f6ee141f..0ebf4460cfdd3e0d9d2e47dbceebcdbb422f1d72 100644 |
--- a/core/fpdfdoc/cpdf_interform.cpp |
+++ b/core/fpdfdoc/cpdf_interform.cpp |
@@ -634,11 +634,8 @@ CFieldTree::Node* CFieldTree::Lookup(Node* pParent, |
for (int i = 0; i < pParent->children.GetSize(); i++) { |
Node* pNode = pParent->children[i]; |
- if (pNode->short_name.GetLength() == short_name.GetLength() && |
- FXSYS_memcmp(pNode->short_name.c_str(), short_name.c_str(), |
- short_name.GetLength() * sizeof(FX_WCHAR)) == 0) { |
+ if (pNode->short_name == short_name) |
return pNode; |
- } |
} |
return nullptr; |
} |