[SHELL32] Drop slash when dismounting a remote drive. MPR and NP are expecting a...
authorPierre Schweitzer <pierre@reactos.org>
Sat, 18 Nov 2017 20:26:18 +0000 (21:26 +0100)
committerPierre Schweitzer <pierre@reactos.org>
Sat, 18 Nov 2017 20:27:30 +0000 (21:27 +0100)
This fixes dismounting a network drive using explorer.

dll/win32/shell32/folders/CDrivesFolder.cpp

index a708dc4..701a106 100644 (file)
@@ -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)
                 {