Scans a target buffer for an 8-bit value, and returns a pointer to the matching 8-bit value\r
in the target buffer.\r
\r
- This function searches target the buffer specified by Buffer and Length from the lowest\r
+ This function searches the target buffer specified by Buffer and Length from the lowest\r
address to the highest address for an 8-bit value that matches Value. If a match is found,\r
then a pointer to the matching byte in the target buffer is returned. If no match is found,\r
then NULL is returned. If Length is 0, then NULL is returned.\r
Scans a target buffer for a UINTN sized value, and returns a pointer to the matching \r
UINTN sized value in the target buffer.\r
\r
- This function searches target the buffer specified by Buffer and Length from the lowest\r
+ This function searches the target buffer specified by Buffer and Length from the lowest\r
address to the highest address for a UINTN sized value that matches Value. If a match is found,\r
then a pointer to the matching byte in the target buffer is returned. If no match is found,\r
then NULL is returned. If Length is 0, then NULL is returned.\r
{\r
if (sizeof (UINTN) == sizeof (UINT64)) {\r
return ScanMem64 (Buffer, Length, (UINT64)Value);\r
+ } else {\r
+ return ScanMem32 (Buffer, Length, (UINT32)Value);\r
}\r
- return ScanMem32 (Buffer, Length, (UINT32)Value);\r
}\r
\r