Comparison is always true due to limited range of data type.
Patch by Samuel Serapion.

CORE-7178 #resolve #comment Committed in r59077.

svn path=/trunk/; revision=59077
This commit is contained in:
Eric Kohl 2013-05-24 12:10:12 +00:00
parent 0bc3ffeb7b
commit 0b66765529

View file

@ -308,9 +308,6 @@ LdrpCompareResourceNames_U(
}
else
{
/* Fail if ResourceName2 is an ID */
if (Entry->Id <= USHRT_MAX) return -1;
/* Get the resource string */
ResourceString = (PIMAGE_RESOURCE_DIR_STRING_U)(ResourceData +
Entry->NameOffset);