@@ -242,8 +242,8 @@ InternalCanonicalizeRealPath
242242 exist, this is a straight thunk through to realpath(). On other
243243 systems, we remove the last path component, then call realpath().
244244
245- cch is the size of lpBuffer and has to be atleast PATH_MAX (since
246- realpath() requires the buffer to be atleast PATH_MAX).
245+ cch is the size of lpBuffer and has to be at least PATH_MAX (since
246+ realpath() requires the buffer to be at least PATH_MAX).
247247--*/
248248PAL_ERROR
249249CorUnix::InternalCanonicalizeRealPath (LPCSTR lpUnixPath, LPSTR lpBuffer, DWORD cch)
@@ -484,7 +484,7 @@ CorUnix::InternalCreateFile(
484484
485485 const char * szNonfilePrefix = " \\\\ .\\ " ;
486486 LPSTR lpFullUnixPath = NULL ;
487- DWORD cchFullUnixPath = PATH_MAX+1 ; // InternalCanonicalizeRealPath requires this to be atleast PATH_MAX
487+ DWORD cchFullUnixPath = PATH_MAX+1 ; // InternalCanonicalizeRealPath requires this to be at least PATH_MAX
488488
489489 /* for dwShareMode only three flags are accepted */
490490 if ( dwShareMode & ~(FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE) )
@@ -715,7 +715,7 @@ CorUnix::InternalCreateFile(
715715 // the PAL, other PALs will ignore these locks. In order to support a basic level of cross
716716 // process locking, we'll use advisory locks. FILE_SHARE_NONE implies a exclusive lock on the
717717 // file and all other modes use a shared lock. While this is not as granular as Windows,
718- // you can atleast implement a lock file using this.
718+ // you can at least implement a lock file using this.
719719 lock_mode = (dwShareMode == 0 /* FILE_SHARE_NONE */ ) ? LOCK_EX : LOCK_SH;
720720
721721 if (flock (filed, lock_mode | LOCK_NB) != 0 )
@@ -1177,7 +1177,7 @@ DeleteFileA(
11771177 int length;
11781178 PathCharString lpUnixFileNamePS;
11791179 LPSTR lpFullUnixFileName = NULL ;
1180- DWORD cchFullUnixFileName = MAX_LONGPATH+1 ;// InternalCanonicalizeRealPath requires this to be atleast PATH_MAX
1180+ DWORD cchFullUnixFileName = MAX_LONGPATH+1 ;// InternalCanonicalizeRealPath requires this to be at least PATH_MAX
11811181
11821182 PERF_ENTRY (DeleteFileA);
11831183 ENTRY (" DeleteFileA(lpFileName=%p (%s))\n " , lpFileName?lpFileName:" NULL" , lpFileName?lpFileName:" NULL" );
0 commit comments