Andrew Talbot wrote:
> @@ -967,16 +967,14 @@ static HFONT SYSLINK_SetFont (SYSLINK_INFO *infoPtr,
> HFONT hFont, BOOL bRedraw)
> */
> static LRESULT SYSLINK_SetText (SYSLINK_INFO *infoPtr, LPCWSTR Text)
> {
> - int textlen;
> -
> /* clear the document */
> SYSLINK_ClearDoc(infoPtr);
> -
> - if(Text == NULL || (textlen = lstrlenW(Text)) == 0)
> +
> + if(Text == NULL || lstrlenW(Text) == 0)
> {
> A better fix would be to use "*Text == 0" instead of "lstrlenW(Text) == 0". -- Rob Shearman
