Skip to content

Commit

Permalink
Fix use FILE_LINK_INFORMATION struct for (fileInfoClass == FileLinkIn…
Browse files Browse the repository at this point in the history
…formation) instead of FILE_RENAME_INFORMATION struct. (microsoft#225)

There was no error because both structs are same size, but this may change in future versions.
  • Loading branch information
noega authored and wm1 committed Apr 9, 2018
1 parent 622212c commit 4319a65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filesys/miniFilter/simrep/simrep.c
Original file line number Diff line number Diff line change
Expand Up @@ -1958,7 +1958,7 @@ Return Value:

} else if (fileInfoClass == FileLinkInformation) {

bufferLength = FIELD_OFFSET( FILE_RENAME_INFORMATION, FileName ) + newFileName.Length;
bufferLength = FIELD_OFFSET( FILE_LINK_INFORMATION, FileName ) + newFileName.Length;

buffer = ExAllocatePoolWithTag( PagedPool, bufferLength, SIMREP_STRING_TAG );

Expand Down

0 comments on commit 4319a65

Please sign in to comment.