forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add fallback implementation for
CopyFileExW
If `CopyFileExW` is not available, we have to - copy the file with the non-Ex API - then open it with `dwDesiredAccess = 0` (query attributes only) - then use `GetFileSize` to retrieve the size For some reason, the unicows layer implements `CopyFileExW` similarly to other functions (convert to ANSI, call ...A API). However, 9x/ME don't support `CopyFileExA` either! This means we have to check both for the API to exist *and* that we're running on NT.
- Loading branch information
Showing
4 changed files
with
102 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters