[RDBSSLIB] RxFirstCanonicalize(): Fix pointer arithmetic

CORE-13383
This commit is contained in:
Victor Martinez 2019-11-17 17:09:51 +01:00 committed by Pierre Schweitzer
parent bef841c3ee
commit 9420daee3d

View file

@ -6074,7 +6074,7 @@ RxFirstCanonicalize(
} }
} }
if (EndOfString - FirstSlash <= sizeof(WCHAR)) if (EndOfString - FirstSlash <= 1)
{ {
Status = STATUS_OBJECT_NAME_INVALID; Status = STATUS_OBJECT_NAME_INVALID;
} }