Skip to content

Commit

Permalink
Merge pull request #14 from suy/unmount-bug
Browse files Browse the repository at this point in the history
Fix DokanUnmount bug
  • Loading branch information
Liryna committed May 12, 2015
2 parents 6d22d82 + a28a915 commit d52fa9e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions dokan/mount.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ BOOL DOKANAPI
DokanUnmount(
WCHAR DriveLetter)
{
WCHAR mountPoint[] = L"M:\\";
WCHAR mountPoint[] = L"M:";
mountPoint[0] = DriveLetter;
return DokanRemoveMountPoint(mountPoint);
}
Expand Down Expand Up @@ -361,4 +361,4 @@ DokanNetworkProviderUninstall()
RegCloseKey(key);

return TRUE;
}
}
9 changes: 5 additions & 4 deletions dokan/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -313,10 +313,11 @@ otherwise, the following error code is returned.
Unmounting
==========

File system can be unmounted by calling the function DokanUnmount. In
most cases when the programs or shells use the file system hang,
unmount operation will solve the problems by bringing the system to
the previous state when the file system is not mounted.
File system can be unmounted by calling the function DokanUnmount or
DokanRemoveMountPoint. In most cases when the programs or shells use
the file system hang, unmount operation will solve the problems by
bringing the system to the previous state when the file system is not
mounted.

User may use DokanCtl to unmount file system like this:
> dokanctl.exe /u DriveLetter
Expand Down

0 comments on commit d52fa9e

Please sign in to comment.