Check return value of GetWindowText()