[SHELL32]
authorPierre Schweitzer <pierre@reactos.org>
Sun, 2 Oct 2016 08:46:30 +0000 (08:46 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Sun, 2 Oct 2016 08:46:30 +0000 (08:46 +0000)
When parsing the UNC names, start the connection to allow the user to browse the net folder immediately.
This is required for network providers which require the connections to be started before browsing (as VBoxNP).

This is likely a hack.

ROSAPPS-303
CORE-11757

svn path=/trunk/; revision=72888

reactos/dll/win32/shell32/folders/CNetFolder.cpp

index 774d506..81e3a99 100644 (file)
@@ -39,6 +39,8 @@ LPITEMIDLIST ILCreateFromNetworkPlaceW(LPCWSTR lpNetworkPlace)
     wcscpy((WCHAR*)&pidl->mkid.abID[0], lpNetworkPlace);
     *(WORD*)((char*)pidl + cbData) = 0;
 
+    WNetAddConnectionW(lpNetworkPlace, NULL, NULL);
+
     return pidl;
 }
 #endif