"Mike McCormack" mike@codeweavers.com wrote:
ChangeLog:
- take account of dwHeaderLength in HttpSendRequest
len = strlenW(lpszHeaders)+3;
szCookedHeaders = HeapAlloc( GetProcessHeap(), 0, sizeof(WCHAR)*len );
strcpyW( szCookedHeaders, lpszHeaders );
if( dwHeaderLength < 0 )
len = strlenW(lpszHeaders);
else
len = dwHeaderLength;
(dwHeaderLength < 0) is an always true condition, since dwHeaderLength is DWORD, i.e. unsigned long.