@@ -242,8 +242,8 @@ InternalCanonicalizeRealPath
242
242
exist, this is a straight thunk through to realpath(). On other
243
243
systems, we remove the last path component, then call realpath().
244
244
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).
247
247
--*/
248
248
PAL_ERROR
249
249
CorUnix::InternalCanonicalizeRealPath(LPCSTR lpUnixPath, LPSTR lpBuffer, DWORD cch)
@@ -484,7 +484,7 @@ CorUnix::InternalCreateFile(
484
484
485
485
const char* szNonfilePrefix = "\\\\.\\";
486
486
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
488
488
489
489
/* for dwShareMode only three flags are accepted */
490
490
if ( dwShareMode & ~(FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE) )
@@ -715,7 +715,7 @@ CorUnix::InternalCreateFile(
715
715
// the PAL, other PALs will ignore these locks. In order to support a basic level of cross
716
716
// process locking, we'll use advisory locks. FILE_SHARE_NONE implies a exclusive lock on the
717
717
// 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.
719
719
lock_mode = (dwShareMode == 0 /* FILE_SHARE_NONE */) ? LOCK_EX : LOCK_SH;
720
720
721
721
if(flock(filed, lock_mode | LOCK_NB) != 0)
@@ -1177,7 +1177,7 @@ DeleteFileA(
1177
1177
int length;
1178
1178
PathCharString lpUnixFileNamePS;
1179
1179
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
1181
1181
1182
1182
PERF_ENTRY(DeleteFileA);
1183
1183
ENTRY("DeleteFileA(lpFileName=%p (%s))\n", lpFileName?lpFileName:"NULL", lpFileName?lpFileName:"NULL");
0 commit comments