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,
{
*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;
}
......
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