[PATCH 3/5] wininet: InternetGetLastResponseInfoW() returns wide chars, not ASCII

Jacek Caban jacek at codeweavers.com
Fri Jul 2 10:55:52 CDT 2021


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




More information about the wine-devel mailing list