This should remove the unwanted 1st-chance exceptions caught when debugging Office 2010 installation, that calls from time to time lstrlen with NULL pointers.
svn path=/trunk/; revision=74119
return 1;
Result = CompareStringA(GetThreadLocale(), 0, lpString1, -1, lpString2, -1);
- if (Result) Result -= 2;
+ if (Result)
+ Result -= 2;
return Result;
}
return Result;
}
+
/*
* @implemented
*/
{
INT Ret = 0;
+ if (lpString == NULL)
+ return 0;
+
_SEH2_TRY
{
Ret = strlen(lpString);
{
INT Ret = 0;
+ if (lpString == NULL)
+ return 0;
+
_SEH2_TRY
{
Ret = wcslen(lpString);