https://git.reactos.org/?p=reactos.git;a=commitdiff;h=45b543202d7e1927833d84faebdb39924d2b4e09

commit 45b543202d7e1927833d84faebdb39924d2b4e09
Author: Pierre Schweitzer <pie...@reactos.org>
AuthorDate: Sat Nov 18 21:26:18 2017 +0100

    [SHELL32] Drop slash when dismounting a remote drive. MPR and NP are 
expecting a drive letter.
    This fixes dismounting a network drive using explorer.
---
 dll/win32/shell32/folders/CDrivesFolder.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dll/win32/shell32/folders/CDrivesFolder.cpp 
b/dll/win32/shell32/folders/CDrivesFolder.cpp
index a708dc4d49..701a10643f 100644
--- a/dll/win32/shell32/folders/CDrivesFolder.cpp
+++ b/dll/win32/shell32/folders/CDrivesFolder.cpp
@@ -253,6 +253,7 @@ HRESULT CALLBACK DrivesContextMenuCallback(IShellFolder 
*psf,
             else if (wParam == CMDID_DISCONNECT)
             {
                 /* do disconnect */
+                wszBuf[2] = UNICODE_NULL;
                 dwError = WNetCancelConnection2W(wszBuf, 0, FALSE);
                 if (dwError == NO_ERROR)
                 {

Reply via email to