Fixed issue #1648: Issue with handles being kept when there are uncommitted changes

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Use correct handle

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Return root path instead of always empty string

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Make sure to close all handles on eject drive

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Revert "Fixed issue #2071: TGitCache blocks Windows to eject USB drive"

This reverts commit 3956856e3e394a335ce63353446db3d6e145d71f.

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Do not block empty paths

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Release handles also on DBT_DEVTYP_VOLUME

This is needed to release handles e.g. on TrueCrypt unmount.

Based on TortoiseSVN revision #16403.

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Merge branch 'tgitcache-handles'