1
0
Fork 0
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:
Tom Poole 2019-04-29 10:46:58 +01:00
parent a4f0b179a3
commit 8eb626a338

View file

@ -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);