wininet: Fixed leak in InternetGetConnectedStateExA.

This commit is contained in:
Jacek Caban 2014-07-24 12:19:49 +02:00 committed by Alexandre Julliard
parent a6a9b05dee
commit e1dbfb762c
1 changed files with 2 additions and 3 deletions

View File

@ -1294,11 +1294,10 @@ BOOL WINAPI InternetGetConnectedStateExA(LPDWORD lpdwStatus, LPSTR lpszConnectio
rc = InternetGetConnectedStateExW(lpdwStatus,lpwszConnectionName, dwNameLen,
dwReserved);
if (rc && lpwszConnectionName)
{
WideCharToMultiByte(CP_ACP,0,lpwszConnectionName,-1,lpszConnectionName,
dwNameLen, NULL, NULL);
heap_free(lpwszConnectionName);
}
heap_free(lpwszConnectionName);
return rc;
}