April 15, 2008
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
6555
Age (days ago)
6555
Last active (days ago)
0 comments
1 participants
participants (1)
-
Robert Shearman