wininet: Fix InternetGetConnectedStateEx[A|W] (try 2, resend)
Alexandre Julliard
julliard at winehq.org
Fri May 9 09:29:23 CDT 2014
Bruno Jesus <00cpxxx at gmail.com> writes:
> @@ -1241,8 +1250,9 @@ BOOL WINAPI InternetGetConnectedStateExA(LPDWORD lpdwStatus, LPSTR lpszConnectio
> dwReserved);
> if (rc && lpwszConnectionName)
> {
> - WideCharToMultiByte(CP_ACP,0,lpwszConnectionName,-1,lpszConnectionName,
> - dwNameLen, NULL, NULL);
> + if (WideCharToMultiByte(CP_ACP,0,lpwszConnectionName,-1,lpszConnectionName,
> + dwNameLen, NULL, NULL) == 0)
> + *lpszConnectionName = '\0';
That doesn't seem to match what the W function does, and I don't see any
tests for that case.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list