[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-devel
Subject: [PATCH 3/5] wininet: InternetGetLastResponseInfoW() returns wide chars, not ASCII
From: Damjan Jovanovic <damjan.jov () gmail ! com>
Date: 2021-06-30 18:15:43
Message-ID: CAJm2B-=apa7ZE2GZ_D-AKX0x1wJ6+B4WVX71f8K5+y85RKqENA () mail ! gmail ! com
[Download RAW message or body]
Signed-off-by: Damjan Jovanovic <damjan.jov@gmail.com>
---
dlls/wininet/internet.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
["0003-wininet-InternetGetLastResponseInfoW-returns-wide-char.txt" (text/plain)]
diff --git a/dlls/wininet/internet.c b/dlls/wininet/internet.c
index feb25bbc0c5..94dc37a2b13 100644
--- a/dlls/wininet/internet.c
+++ b/dlls/wininet/internet.c
@@ -1137,7 +1137,7 @@ BOOL WINAPI InternetGetLastResponseInfoW(LPDWORD lpdwError,
*lpdwError = lpwite->dwError;
if (lpwite->dwError)
{
- memcpy(lpszBuffer, lpwite->response, *lpdwBufferLength);
+ MultiByteToWideChar(CP_ACP, 0, lpwite->response, -1, lpszBuffer, *lpdwBufferLength);
*lpdwBufferLength = lstrlenW(lpszBuffer);
}
else
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic