This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Re: proxy setup help


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]