15 Apr
2008
15 Apr
'08
8:42 p.m.
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