Function get_localized_dayname() already returns the number of characters written, so the lstrlenW() into DrawTextW() could just replaced with that return value.
Sincerely.
Signed-off-by: Carlo Bramini carlo_bramini@users.sourceforge.net
Does this change really help anything? I'd rather had it consistent with the other call site, checking for non-zero return value and using -1 for DrawTextEx().