mirror of
https://github.com/winfsp/winfsp.git
synced 2026-11-05 16:46:04 -06:00
winfsp-tests: memfs: minor improvement
This commit is contained in:
1 parent
68795652b3
commit
2afa957feb
1 file changed
+2
-2
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user