Windows Driver: Remove unwanted ':' character at the end of volume device name. This was causing a crash in Kaspersky Internet Security 2016 when a program is run from a VeraCrypt volume.

This commit is contained in:
Mounir IDRASSI 2016-01-02 23:38:43 +01:00
parent 6e1f5cfe4b
commit 723fcfa64d

View File

@ -1966,8 +1966,8 @@ VOID VolumeThreadProc (PVOID Context)
void TCGetNTNameFromNumber (LPWSTR ntname, int cbNtName, int nDriveNo)
{
WCHAR tmp[3] =
{0, ':', 0};
WCHAR tmp[2] =
{0, 0};
int j = nDriveNo + (WCHAR) 'A';
tmp[0] = (short) j;