Re: [2/2] wininet: HTTP_HttpAddRequestHeadersW should ignore 0-lengthheaders

2009-04-24 Thread Paul TBBle Hampson
On Sat, Apr 25, 2009 at 11:52:20AM +0900, Dmitry Timoshkov wrote: > "Paul TBBle Hampson" wrote: > >+if (strlenW(lpszStart)==0) > >+{ > >+/* Skip 0-length headers */ > >+lpszStart = lpszEnd; > >+bSuccess = TRUE; > >+continue; > >+

Re: [2/2] wininet: HTTP_HttpAddRequestHeadersW should ignore 0-lengthheaders

2009-04-24 Thread Dmitry Timoshkov
"Paul TBBle Hampson" wrote: +if (strlenW(lpszStart)==0) +{ +/* Skip 0-length headers */ +lpszStart = lpszEnd; +bSuccess = TRUE; +continue; +} Instead of 'if (strlenW(lpszStart)==0)' it's much simpler to do 'if (!*lpszStar