From 7b002a39b88dee3047db2ae7f06fb303faf91868 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Fri, 12 Jan 2007 19:16:49 -0600 Subject: [PATCH] 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 file changed, 2 insertions(+) diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index 07dc5969b9c..9a2e739cd55 100644 --- a/dlls/wininet/http.c +++ b/dlls/wininet/http.c @@ -2873,6 +2873,8 @@ static BOOL HTTP_ProcessHeader(LPWININETHTTPREQW lpwhr, LPCWSTR field, LPCWSTR v return HTTP_InsertCustomHeader(lpwhr, &hdr); } + /* no value to delete */ + else return TRUE; if (dwModifier & HTTP_ADDHDR_FLAG_REQ) lphttpHdr->wFlags |= HDR_ISREQUEST;