mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-24 09:23:37 -05:00
winfsp-tests: memfs: minor improvement
This commit is contained in:
parent
68795652b3
commit
2afa957feb
@ -289,7 +289,7 @@ static NTSTATUS Create(FSP_FILE_SYSTEM *FileSystem,
|
|||||||
}
|
}
|
||||||
|
|
||||||
FileNode->RefCount++;
|
FileNode->RefCount++;
|
||||||
memcpy(NodeInfo, &FileNode->NodeInfo, sizeof *NodeInfo);
|
*NodeInfo = FileNode->NodeInfo;
|
||||||
|
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
@ -314,7 +314,7 @@ static NTSTATUS Open(FSP_FILE_SYSTEM *FileSystem,
|
|||||||
FileNode->NodeInfo.LastAccessTime = MemfsGetSystemTime();
|
FileNode->NodeInfo.LastAccessTime = MemfsGetSystemTime();
|
||||||
|
|
||||||
FileNode->RefCount++;
|
FileNode->RefCount++;
|
||||||
memcpy(NodeInfo, &FileNode->NodeInfo, sizeof *NodeInfo);
|
*NodeInfo = FileNode->NodeInfo;
|
||||||
|
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user