diff options
Diffstat (limited to 'MdePkg')
-rw-r--r-- | MdePkg/Library/BaseLib/String.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MdePkg/Library/BaseLib/String.c b/MdePkg/Library/BaseLib/String.c index 50253de..43ba144 100644 --- a/MdePkg/Library/BaseLib/String.c +++ b/MdePkg/Library/BaseLib/String.c @@ -479,7 +479,7 @@ StrStr ( ASSERT (StrSize (SearchString) != 0);
if (*SearchString == L'\0') {
- return NULL;
+ return (CHAR16 *) String;
}
while (*String != L'\0') {
@@ -1617,7 +1617,7 @@ AsciiStrStr ( ASSERT (AsciiStrSize (SearchString) != 0);
if (*SearchString == '\0') {
- return NULL;
+ return (CHAR8 *) String;
}
while (*String != '\0') {
|