Damjan Jovanovic : wininet: InternetGetLastResponseInfoW() returns wide chars, not ASCII.
Alexandre Julliard
julliard at winehq.org
Wed Jul 7 15:01:30 CDT 2021
Module: wine
Branch: master
Commit: 2f2a5d5ccb1be735d08a7e8442e306da2e65eb42
URL: https://source.winehq.org/git/wine.git/?a=commit;h=2f2a5d5ccb1be735d08a7e8442e306da2e65eb42
Author: Damjan Jovanovic <damjan.jov at gmail.com>
Date: Tue Jul 6 20:23:15 2021 +0200
wininet: InternetGetLastResponseInfoW() returns wide chars, not ASCII.
Signed-off-by: Damjan Jovanovic <damjan.jov at gmail.com>
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/wininet/internet.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/dlls/wininet/internet.c b/dlls/wininet/internet.c
index 00e199b66d5..27640e3ab27 100644
--- a/dlls/wininet/internet.c
+++ b/dlls/wininet/internet.c
@@ -1136,10 +1136,7 @@ BOOL WINAPI InternetGetLastResponseInfoW(LPDWORD lpdwError,
{
*lpdwError = lpwite->dwError;
if (lpwite->dwError)
- {
- memcpy(lpszBuffer, lpwite->response, *lpdwBufferLength);
- *lpdwBufferLength = lstrlenW(lpszBuffer);
- }
+ *lpdwBufferLength = MultiByteToWideChar(CP_ACP, 0, lpwite->response, -1, lpszBuffer, *lpdwBufferLength);
else
*lpdwBufferLength = 0;
}
More information about the wine-cvs
mailing list