wininet: Implement InternetCreateUrlA/W with test cases

Juan Lang juan_lang at yahoo.com
Fri Oct 28 12:34:52 CDT 2005


> > +/* max port num is 655936 => 6 digits */
> >
> > Actually, it's 65535.  A correct comment would be appreciated ;)
> >
> 
> InternetCreateUrl doesn't check whether it's a valid port number or
> not.  The comment is about the maximum value for the port number in
> the context of InternetCreateUrl which is the greatest value of a WORD
> value before it overflows.

Right, and that's why I say, the comment is wrong.  655936 is too large
for a WORD, and so is 65536, which I believe you meant to type.  The
correct value is 65535.

--Juan


		
__________________________________ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com



More information about the wine-devel mailing list