[RDBSS] Fix a bug in RxQueryNameInfo(): don't only return name length, but also the whole structure. Avoids corruption

This commit is contained in:
Pierre Schweitzer 2017-11-02 23:03:08 +01:00
parent 0ef056230e
commit 3c679fc6b4
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B

View file

@ -8155,6 +8155,8 @@ RxQueryNameInfo(
return STATUS_BUFFER_OVERFLOW;
}
RxContext->Info.LengthRemaining -= FIELD_OFFSET(FILE_NAME_INFORMATION, FileName);
Fcb = (PFCB)RxContext->pFcb;
Fobx = (PFOBX)RxContext->pFobx;
/* Get the UNC name */