https://git.reactos.org/?p=reactos.git;a=commitdiff;h=7e18b6d0ebef7d34d1054…
commit 7e18b6d0ebef7d34d1054130f35296d0163e8927
Author: Jared Smudde <computerwhiz02(a)hotmail.com>
AuthorDate: Tue Apr 23 00:47:02 2019 -0500
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Wed Apr 24 04:28:05 2019 +0200
[BROWSEUI] Enable the Disconnect Network Drive menu item. (#1522)
CORE-13516, CORE-13518
---
dll/win32/browseui/CMakeLists.txt | 2 +-
dll/win32/browseui/precomp.h | 1 +
dll/win32/browseui/shellbrowser.cpp | 3 ---
3 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/dll/win32/browseui/CMakeLists.txt b/dll/win32/browseui/CMakeLists.txt
index 3681a2f043..8b979501ab 100644
--- a/dll/win32/browseui/CMakeLists.txt
+++ b/dll/win32/browseui/CMakeLists.txt
@@ -47,7 +47,7 @@ add_library(browseui MODULE
set_module_type(browseui win32dll UNICODE)
target_link_libraries(browseui shellbars uuid wine)
-add_importlibs(browseui uxtheme shlwapi shell32 comctl32 gdi32 ole32 oleaut32 user32
advapi32 msvcrt kernel32 ntdll)
+add_importlibs(browseui uxtheme shlwapi shell32 comctl32 gdi32 ole32 oleaut32 user32
advapi32 mpr msvcrt kernel32 ntdll)
add_pch(browseui precomp.h SOURCE)
add_cd_file(TARGET browseui DESTINATION reactos/system32 FOR all)
diff --git a/dll/win32/browseui/precomp.h b/dll/win32/browseui/precomp.h
index e646759ef0..69d1cb92f5 100644
--- a/dll/win32/browseui/precomp.h
+++ b/dll/win32/browseui/precomp.h
@@ -11,6 +11,7 @@
#include <winbase.h>
#include <wincon.h>
#include <wingdi.h>
+#include <winnetwk.h>
#include <shlobj.h>
#include <tlogstg.h>
#include <shellapi.h>
diff --git a/dll/win32/browseui/shellbrowser.cpp b/dll/win32/browseui/shellbrowser.cpp
index ae981734e6..2f303123e1 100644
--- a/dll/win32/browseui/shellbrowser.cpp
+++ b/dll/win32/browseui/shellbrowser.cpp
@@ -3536,7 +3536,6 @@ LRESULT CShellBrowser::OnInitMenuPopup(UINT uMsg, WPARAM wParam,
LPARAM lParam,
{
// FIXME: Remove once implemented
SHEnableMenuItem(theMenu, IDM_TOOLS_MAPNETWORKDRIVE, FALSE);
- SHEnableMenuItem(theMenu, IDM_TOOLS_DISCONNECTNETWORKDRIVE, FALSE);
SHEnableMenuItem(theMenu, IDM_TOOLS_SYNCHRONIZE, FALSE);
menuIndex = 4;
}
@@ -3595,9 +3594,7 @@ LRESULT CShellBrowser::OnMapNetworkDrive(WORD wNotifyCode, WORD wID,
HWND hWndCt
LRESULT CShellBrowser::OnDisconnectNetworkDrive(WORD wNotifyCode, WORD wID, HWND hWndCtl,
BOOL &bHandled)
{
-#ifndef __REACTOS__
WNetDisconnectDialog(m_hWnd, RESOURCETYPE_DISK);
-#endif /* __REACTOS__ */
return 0;
}