Alistair Leslie-Hughes leslie_alistair@hotmail.com writes:
@@ -1041,6 +1041,9 @@ TOOLTIPS_AddToolT (TOOLTIPS_INFO *infoPtr, const TTTOOLINFOW *ti, BOOL isW) if (ti->cbSize >= TTTOOLINFOW_V2_SIZE && !ti->lpszText && isW) return FALSE;
- if(isW && ti->lpszText && IsBadReadPtr(ti->lpszText, sizeof(WCHAR)))
return FALSE;
You want IsBadStringPtrW, and this should most likely be merged with the check above it one way or another.