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.
Robert Shearman
rob at codeweavers.com
Fri Jan 12 19:16:49 CST 2007
---
dlls/wininet/http.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
-------------- next part --------------
diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c
index 0eab832..c4c8fe4 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;
More information about the wine-patches
mailing list