[SHELL32] Drop slash when dismounting a remote drive. MPR and NP are expecting a drive letter.

This fixes dismounting a network drive using explorer.
This commit is contained in:
Pierre Schweitzer 2017-11-18 21:26:18 +01:00
parent 764b2b6ef7
commit 45b543202d
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B

View 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)
{