diff options
| author | Julio Garcia <[email protected]> | 2018-04-09 23:12:20 +0200 |
|---|---|---|
| committer | Wei Mao <[email protected]> | 2018-04-09 14:12:20 -0700 |
| commit | 4319a6543af1323f105648885ead5272d644b629 (patch) | |
| tree | e511a44e84bc0568a82084a88d9e6bbc62111363 | |
| parent | 622212c3fff587f23f6490a9da939fb85968f651 (diff) | |
Fix use FILE_LINK_INFORMATION struct for (fileInfoClass == FileLinkInformation) instead of FILE_RENAME_INFORMATION struct. (#225)
There was no error because both structs are same size, but this may change in future versions.
| -rw-r--r-- | filesys/miniFilter/simrep/simrep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/filesys/miniFilter/simrep/simrep.c b/filesys/miniFilter/simrep/simrep.c index 60299717..46dfbc48 100644 --- a/filesys/miniFilter/simrep/simrep.c +++ b/filesys/miniFilter/simrep/simrep.c @@ -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 ); |
