Skip to content

Commit e407410

Browse files
committed
Use GetFileAttributesExA instead of GetFileAttributesEx
1 parent 3092870 commit e407410

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/source/detail/os_util.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ getFilesWithAccessTime(const std::string &Path) {
322322
// Convert to wise string.
323323
char *path = new char[Entry.path().string().length() + 1];
324324
strcpy(path, Entry.path().string().c_str());
325-
if (GetFileAttributesEx(path, GetFileExInfoStandard, &FileData)) {
325+
if (GetFileAttributesExA(path, GetFileExInfoStandard, &FileData)) {
326326
// Convert FILETIME to uint64_t.
327327
ULARGE_INTEGER Time;
328328
Time.LowPart = FileData.ftLastAccessTime.dwLowDateTime;

0 commit comments

Comments
 (0)