Module: wine Branch: master Commit: 7b002a39b88dee3047db2ae7f06fb303faf91868 URL: http://source.winehq.org/git/wine.git/?a=commit;h=7b002a39b88dee3047db2ae7f0... Author: Rob Shearman <rob(a)codeweavers.com> Date: Fri Jan 12 19:16:49 2007 -0600 wininet: Allow a NULL value to be passed into HTTP_ProcessHeader instead of crashing so that when used with the replace flag it will delete an existing value. --- dlls/wininet/http.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index 07dc596..9a2e739 100644 --- a/dlls/wininet/http.c +++ b/dlls/wininet/http.c @@ -2873,6 +2873,8 @@ static BOOL HTTP_ProcessHeader(LPWININET return HTTP_InsertCustomHeader(lpwhr, &hdr); } + /* no value to delete */ + else return TRUE; if (dwModifier & HTTP_ADDHDR_FLAG_REQ) lphttpHdr->wFlags |= HDR_ISREQUEST;