From d30cec77d3c56ab62dce3ce4117b1ecd342ba7ae Mon Sep 17 00:00:00 2001 From: Aric Stewart Date: Thu, 8 Dec 2005 11:54:24 +0100 Subject: [PATCH] wininet: A->W bugfix. When converting SendRequestExA -> W we need to set the lpcszHeader parameter to NULL if the original one is NULL. --- dlls/wininet/http.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index f234530ea56..ffa5414d398 100644 --- a/dlls/wininet/http.c +++ b/dlls/wininet/http.c @@ -1532,6 +1532,8 @@ BOOL WINAPI HttpSendRequestExA(HINTERNET hRequest, lpBuffersIn->lpcszHeader, lpBuffersIn->dwHeadersLength, (LPWSTR)BuffersInW.lpcszHeader, headerlen); } + else + BuffersInW.lpcszHeader = NULL; BuffersInW.dwHeadersTotal = lpBuffersIn->dwHeadersTotal; BuffersInW.lpvBuffer = lpBuffersIn->lpvBuffer; BuffersInW.dwBufferLength = lpBuffersIn->dwBufferLength;