diff --git a/src/coreclr/pal/src/file/file.cpp b/src/coreclr/pal/src/file/file.cpp index 59cfd07fbdbdd8..71f35f810bcf19 100644 --- a/src/coreclr/pal/src/file/file.cpp +++ b/src/coreclr/pal/src/file/file.cpp @@ -1617,7 +1617,7 @@ GetFileAttributesExW( attr_data = (LPWIN32_FILE_ATTRIBUTE_DATA)lpFileInformation; attr_data->dwFileAttributes = GetFileAttributesW(lpFileName); - /* assume that GetFileAttributes will call SetLastError appropriately */ + /* assume that GetFileAttributesW will call SetLastError appropriately */ if ( attr_data->dwFileAttributes == (DWORD)-1 ) { goto done; @@ -1753,7 +1753,7 @@ SetFileAttributesA( new_mode = stat_data.st_mode; TRACE("st_mode is %#x\n", new_mode); - /* if we can't do GetFileAttributes on it, don't do SetFileAttributes */ + /* if we can't do GetFileAttributesA on it, don't do SetFileAttributesA */ if ( !(new_mode & S_IFREG) && !(new_mode & S_IFDIR) ) { ERROR("Not a regular file or directory, S_IFMT is %#x\n", @@ -3542,10 +3542,10 @@ CopyFileA( } /* Need to preserve the file attributes */ - dwSrcFileAttributes = GetFileAttributes(lpExistingFileName); + dwSrcFileAttributes = GetFileAttributesA(lpExistingFileName); if (dwSrcFileAttributes == 0xffffffff) { - ERROR("GetFileAttributes failed for %s\n", lpExistingFileName); + ERROR("GetFileAttributesA failed for %s\n", lpExistingFileName); goto done; }