Fix a range error in SymbolicLink::Init

This commit is contained in:
Luke Usher 2016-08-21 17:30:41 +01:00
parent c6dca6127a
commit ab5f8da5ad
1 changed files with 1 additions and 1 deletions

View File

@ -233,7 +233,7 @@ NTSTATUS EmuNtSymbolicLinkObject::Init(std::string aSymbolicLinkName, std::strin
int DeviceIndex = 0;
result = STATUS_OBJECT_NAME_INVALID;
DriveLetter = SymbolicLinkToDriveLetter(aSymbolicLinkName);
if (DriveLetter > 'A' && DriveLetter < 'Z')
if (DriveLetter >= 'A' && DriveLetter <= 'Z')
{
result = STATUS_OBJECT_NAME_COLLISION;
if (FindNtSymbolicLinkObjectByVolumeLetter(DriveLetter) == NULL)