Signed-off-by: Damjan Jovanovic damjan.jov@gmail.com --- dlls/wininet/internet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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