reactos/sdk/lib/crt/mbstring/mbscmp.c
Timo Kreuzer 840dfdc3a1 [CRT] Add parameter check to _mbscmp
Fixes crash in msvcrt_winetest::string
2023-11-10 19:19:22 +02:00

14 lines
277 B
C

#include <mbstring.h>
#include <string.h>
#include <precomp.h>
/*
* @implemented
*/
int _mbscmp(const unsigned char *str1, const unsigned char *str2)
{
if (!MSVCRT_CHECK_PMT(str1 && str2))
return _NLSCMPERROR;
return strcmp((const char*)str1, (char*)str2);
}