Author: ekohl Date: Fri May 24 12:10:12 2013 New Revision: 59077
URL: http://svn.reactos.org/svn/reactos?rev=59077&view=rev Log: [RTL] Comparison is always true due to limited range of data type. Patch by Samuel Serapion.
CORE-7178 #resolve #comment Committed in r59077.
Modified: trunk/reactos/lib/rtl/res.c
Modified: trunk/reactos/lib/rtl/res.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/res.c?rev=59077&... ============================================================================== --- trunk/reactos/lib/rtl/res.c [iso-8859-1] (original) +++ trunk/reactos/lib/rtl/res.c [iso-8859-1] Fri May 24 12:10:12 2013 @@ -308,9 +308,6 @@ } 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);