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