comctl32: Remove unused variables

Robert Shearman rob at codeweavers.com
Tue Apr 15 15:42:55 CDT 2008


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




More information about the wine-devel mailing list