wininet: A->W bugfix.
When converting SendRequestExA -> W we need to set the lpcszHeader parameter to NULL if the original one is NULL.
This commit is contained in:
parent
0603559de2
commit
d30cec77d3
|
@ -1532,6 +1532,8 @@ BOOL WINAPI HttpSendRequestExA(HINTERNET hRequest,
|
||||||
lpBuffersIn->lpcszHeader, lpBuffersIn->dwHeadersLength,
|
lpBuffersIn->lpcszHeader, lpBuffersIn->dwHeadersLength,
|
||||||
(LPWSTR)BuffersInW.lpcszHeader, headerlen);
|
(LPWSTR)BuffersInW.lpcszHeader, headerlen);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
BuffersInW.lpcszHeader = NULL;
|
||||||
BuffersInW.dwHeadersTotal = lpBuffersIn->dwHeadersTotal;
|
BuffersInW.dwHeadersTotal = lpBuffersIn->dwHeadersTotal;
|
||||||
BuffersInW.lpvBuffer = lpBuffersIn->lpvBuffer;
|
BuffersInW.lpvBuffer = lpBuffersIn->lpvBuffer;
|
||||||
BuffersInW.dwBufferLength = lpBuffersIn->dwBufferLength;
|
BuffersInW.dwBufferLength = lpBuffersIn->dwBufferLength;
|
||||||
|
|
Loading…
Reference in New Issue