A free Windows-compatible Operating System - mirrored from GitHub
Find a file
Hermès Bélusca-Maïto 7e912fee22 [SHELL32]
- Fix the last parameter of a StringCchCopyEx call; fix a misspelling.
- Do not exclusively use GetFileAttributesEx to retrieve file attributes (for the file properties dialog). Indeed, it happens that this API (as well as GetFileAttributes), and equivalently, NtQueryFullAttributesFile (as well as NtQueryAttributesFile), can fail on *locked system* files (on Win2k/Win2k3/Win7, and on ROS), such as C:\pagefile.sys . See for example http://stackoverflow.com/questions/16772931/getfileattributes-on-locked-system-file and my comment in CORE-10757 . Therefore to retrieve file attributes also for these files we do a trick: we call FindFirstFile on the full path to said file. It happens that FindFirstFile can work on locked system files, and thus we are able to retrieve their attributes (+ size and file dates) as well!
See the code for more details.
CORE-10757 #resolve

svn path=/trunk/; revision=71880
2016-07-09 23:18:39 +00:00
reactos [SHELL32] 2016-07-09 23:18:39 +00:00
rosapps [REACTOS][ROSAPPS][ROSSUBSYS] 2016-05-31 22:36:48 +00:00
rossubsys [REACTOS][ROSAPPS][ROSSUBSYS] 2016-05-31 22:36:48 +00:00
rostests [USER32_WINETEST] Sync with Wine Staging 1.9.11 Part 3. CORE-11368 2016-07-07 17:22:10 +00:00
wallpapers Rename 'wallpaper' repo to 'wallpapers' (since it doesn't contain only 1 wallpaper :p ) 2015-03-15 16:06:50 +00:00