mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Windows: Fixed a bug in File::getFileIdentifier()
This commit is contained in:
parent
a4f0b179a3
commit
8eb626a338
1 changed files with 6 additions and 1 deletions
|
|
@ -544,7 +544,12 @@ uint64 File::getFileIdentifier() const
|
|||
{
|
||||
uint64 result = 0;
|
||||
|
||||
auto h = CreateFile (getFullPathName().toWideCharPointer(),
|
||||
String path = getFullPathName();
|
||||
|
||||
if (isRoot())
|
||||
path += "\\";
|
||||
|
||||
auto h = CreateFile (path.toWideCharPointer(),
|
||||
GENERIC_READ, FILE_SHARE_READ, nullptr,
|
||||
OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS, 0);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue