On Tue, Oct 21, 2003 at 07:24:31PM +0100, Robert Shearman wrote:
> Hi,
> 
> This makes IE look a bit neater.
> 
> Rob
> 
> Changelog:
> - Don't store band text if "" is passed into SetBandInfo

> @@ -3447,8 +3450,11 @@
>       }
>       if (lprbbi->lpText) {
>           INT len = lstrlenW (lprbbi->lpText);
> -         lpBand->lpText = (LPWSTR)Alloc ((len + 1)*sizeof(WCHAR));
> -         strcpyW (lpBand->lpText, lprbbi->lpText);
> +         if (len > 1)

Shouldn't this be len >= 1 ?

> +         {
> +             lpBand->lpText = (LPWSTR)Alloc ((len + 1)*sizeof(WCHAR));
> +             strcpyW (lpBand->lpText, lprbbi->lpText);
> +         }
>       }
>      }
> 

Huw.

Reply via email to