Re: comctl32: tooltips: avoid buffer overrun (spotted by [EMAIL PROTECTED], bug #8361), make sure some strings are NUL-terminated

2007-07-19 Thread Alexandre Julliard
Mikołaj Zalewski <[EMAIL PROTECTED]> writes: > I forgot that only lstrlenW has an exception handler. There is a > (somewhat broken) support for non-NULL-terminated string it in the > current code and I don't know why it was added so I didn't want to > remove it. But the main part of the patch is

Re: comctl32: tooltips: avoid buffer overrun (spotted by [EMAIL PROTECTED], bug #8361), make sure some strings are NUL-terminated

2007-07-19 Thread Mikołaj Zalewski
Alexandre Julliard wrote: Mikołaj Zalewski <[EMAIL PROTECTED]> writes: @@ -389,10 +390,10 @@ static void TOOLTIPS_GetDispInfoW(HWND hwnd, TOOLTIPS_INFO *infoPtr, TTTOOL_INFO sizeof(ttnmdi.szText)/sizeof(ttnmdi.szText[0]) : INFOTIPSIZE-1; lstrcpynW(infoPtr->szTipText

Re: comctl32: tooltips: avoid buffer overrun (spotted by [EMAIL PROTECTED], bug #8361), make sure some strings are NUL-terminated

2007-07-19 Thread Alexandre Julliard
Mikołaj Zalewski <[EMAIL PROTECTED]> writes: > @@ -389,10 +390,10 @@ static void TOOLTIPS_GetDispInfoW(HWND hwnd, > TOOLTIPS_INFO *infoPtr, TTTOOL_INFO > sizeof(ttnmdi.szText)/sizeof(ttnmdi.szText[0]) : > INFOTIPSIZE-1; > lstrcpynW(infoPtr->szTipText, ttnmdi.lpszText, m