Aric Stewart : wininet: A->W bugfix.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Dec 8 07:06:10 CST 2005
Module: wine
Branch: refs/heads/master
Commit: d30cec77d3c56ab62dce3ce4117b1ecd342ba7ae
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=d30cec77d3c56ab62dce3ce4117b1ecd342ba7ae
Author: Aric Stewart <aric at codeweavers.com>
Date: Thu Dec 8 11:54:24 2005 +0100
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 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c
index f234530..ffa5414 100644
--- a/dlls/wininet/http.c
+++ b/dlls/wininet/http.c
@@ -1532,6 +1532,8 @@ BOOL WINAPI HttpSendRequestExA(HINTERNET
lpBuffersIn->lpcszHeader, lpBuffersIn->dwHeadersLength,
(LPWSTR)BuffersInW.lpcszHeader, headerlen);
}
+ else
+ BuffersInW.lpcszHeader = NULL;
BuffersInW.dwHeadersTotal = lpBuffersIn->dwHeadersTotal;
BuffersInW.lpvBuffer = lpBuffersIn->lpvBuffer;
BuffersInW.dwBufferLength = lpBuffersIn->dwBufferLength;
More information about the wine-cvs
mailing list