Re: [Rebar] Don't store band text if "" is passed into SetBandInfo
21 Oct
2003
21 Oct
'03
7:26 p.m.
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.
8091
Age (days ago)
8091
Last active (days ago)
0 comments
1 participants
participants (1)
-
Huw D M Davies