[Rebar] Don't store band text if "" is passed into SetBandInfo
Huw D M Davies
h.davies1 at physics.ox.ac.uk
Tue Oct 21 14:26:19 CDT 2003
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.
More information about the wine-devel
mailing list