From 67cf4907ae10a8a96d6c361cc6cb630f6049407c Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Sun, 2 Oct 2016 08:46:30 +0000 Subject: [PATCH] [SHELL32] 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reactos/dll/win32/shell32/folders/CNetFolder.cpp b/reactos/dll/win32/shell32/folders/CNetFolder.cpp index 774d506d4c2..81e3a99f9cd 100644 --- a/reactos/dll/win32/shell32/folders/CNetFolder.cpp +++ b/reactos/dll/win32/shell32/folders/CNetFolder.cpp @@ -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 -- 2.17.1