Commit 2f2a5d5c authored by Damjan Jovanovic's avatar Damjan Jovanovic Committed by Alexandre Julliard

wininet: InternetGetLastResponseInfoW() returns wide chars, not ASCII.

parent 27ecc6ba
...@@ -1136,10 +1136,7 @@ BOOL WINAPI InternetGetLastResponseInfoW(LPDWORD lpdwError, ...@@ -1136,10 +1136,7 @@ BOOL WINAPI InternetGetLastResponseInfoW(LPDWORD lpdwError,
{ {
*lpdwError = lpwite->dwError; *lpdwError = lpwite->dwError;
if (lpwite->dwError) if (lpwite->dwError)
{ *lpdwBufferLength = MultiByteToWideChar(CP_ACP, 0, lpwite->response, -1, lpszBuffer, *lpdwBufferLength);
memcpy(lpszBuffer, lpwite->response, *lpdwBufferLength);
*lpdwBufferLength = lstrlenW(lpszBuffer);
}
else else
*lpdwBufferLength = 0; *lpdwBufferLength = 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment