Share via

GetFileAttributesExW return wrong result

旭 谭 6 Reputation points
2021-11-01T09:06:52.937+00:00

GetFileAttributesExW return me a wrong result when querying a file on a samba server which is established on a ramdisk.
For example, ![GetFileAttributesExW][1] returned me "524605"

But in fact, the filelength is "8507"
This only happens on the samba server, which is established on a ramdisk

This problem occurs probabilistically

Windows development | Windows API - Win32

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.