Skip to content

Commit 55fecfb

Browse files
authored
Fix issues in PAL (#62625)
1 parent 7574e03 commit 55fecfb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/coreclr/pal/src/file/file.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1617,7 +1617,7 @@ GetFileAttributesExW(
16171617
attr_data = (LPWIN32_FILE_ATTRIBUTE_DATA)lpFileInformation;
16181618

16191619
attr_data->dwFileAttributes = GetFileAttributesW(lpFileName);
1620-
/* assume that GetFileAttributes will call SetLastError appropriately */
1620+
/* assume that GetFileAttributesW will call SetLastError appropriately */
16211621
if ( attr_data->dwFileAttributes == (DWORD)-1 )
16221622
{
16231623
goto done;
@@ -1753,7 +1753,7 @@ SetFileAttributesA(
17531753
new_mode = stat_data.st_mode;
17541754
TRACE("st_mode is %#x\n", new_mode);
17551755

1756-
/* if we can't do GetFileAttributes on it, don't do SetFileAttributes */
1756+
/* if we can't do GetFileAttributesA on it, don't do SetFileAttributesA */
17571757
if ( !(new_mode & S_IFREG) && !(new_mode & S_IFDIR) )
17581758
{
17591759
ERROR("Not a regular file or directory, S_IFMT is %#x\n",
@@ -3542,10 +3542,10 @@ CopyFileA(
35423542
}
35433543

35443544
/* Need to preserve the file attributes */
3545-
dwSrcFileAttributes = GetFileAttributes(lpExistingFileName);
3545+
dwSrcFileAttributes = GetFileAttributesA(lpExistingFileName);
35463546
if (dwSrcFileAttributes == 0xffffffff)
35473547
{
3548-
ERROR("GetFileAttributes failed for %s\n", lpExistingFileName);
3548+
ERROR("GetFileAttributesA failed for %s\n", lpExistingFileName);
35493549
goto done;
35503550
}
35513551

0 commit comments

Comments
 (0)