[PATCH] Re: proxy setup help

Max Bowsher maxb@ukf.net
Fri Mar 7 15:27:00 GMT 2003


Max Bowsher wrote:
> @@ -52,7 +53,8 @@ egetString (HWND h, int id)
>  {
>    String aString;
>    char tmp[4000];
> -  if (GetDlgItemText (h, id, tmp, sizeof (tmp)) > 0)
> +  if (GetDlgItemText (h, id, tmp, sizeof (tmp)) > 0
> + || GetLastError() == ERROR_SUCCESS)
>      aString = String (tmp);
>    return aString;
>  }

Moments after posting, I realized that the change to egetString is
unnecessary - a String constructed with zero arguments will be the same as a
String constructed from "\0".


Max.



More information about the Cygwin-apps mailing list