[PATCH 3/5] wininet: InternetGetLastResponseInfoW() returns wide chars, not ASCII
30 Jun
2021
30 Jun
'21
1:15 p.m.
Signed-off-by: Damjan Jovanovic <damjan.jov(a)gmail.com> --- dlls/wininet/internet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
2 Jul
2 Jul
10:55 a.m.
On 6/30/21 8:15 PM, Damjan Jovanovic wrote:
- memcpy(lpszBuffer, lpwite->response, *lpdwBufferLength); + MultiByteToWideChar(CP_ACP, 0, lpwite->response, -1, lpszBuffer, *lpdwBufferLength); *lpdwBufferLength = lstrlenW(lpszBuffer);
You could use MultiByteToWideChar return value for lpdwBufferLength instead of recalculating it with lstrlenW. Thanks, Jacek
1625
Age (days ago)
1627
Last active (days ago)
1 comments
2 participants
participants (2)
-
Damjan Jovanovic -
Jacek Caban