[MPR]
authorPierre Schweitzer <pierre@reactos.org>
Thu, 4 Aug 2016 12:27:59 +0000 (12:27 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Thu, 4 Aug 2016 12:27:59 +0000 (12:27 +0000)
Check for the right capability.
Already sent upstream.

CORE-11757

svn path=/trunk/; revision=72108

reactos/dll/win32/mpr/wnet.c

index 2d7fca8..d5f1297 100644 (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);