Check for the right capability.
Already sent upstream.

CORE-11757

svn path=/trunk/; revision=72108
This commit is contained in:
Pierre Schweitzer 2016-08-04 12:27:59 +00:00
parent 8f8d1f4f72
commit b32d97100d

View file

@ -2110,7 +2110,7 @@ DWORD WINAPI WNetCancelConnection2W( LPCWSTR lpName, DWORD dwFlags, BOOL fForce
for (index = 0; index < providerTable->numProviders; index++)
{
if(providerTable->table[index].getCaps(WNNC_CONNECTION) &
WNNC_CON_GETCONNECTIONS)
WNNC_CON_CANCELCONNECTION)
{
if (providerTable->table[index].cancelConnection)
ret = providerTable->table[index].cancelConnection((LPWSTR)lpName, fForce);