From a1f0570a96f46b74bcbc08d545f66142d1d047f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Fri, 13 Sep 2024 22:26:47 +0800 Subject: [PATCH] Chore: fix typos --- src/detection/disk/disk_windows.c | 4 ++-- src/detection/packages/packages.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/detection/disk/disk_windows.c b/src/detection/disk/disk_windows.c index 581b66232..9c0e06760 100644 --- a/src/detection/disk/disk_windows.c +++ b/src/detection/disk/disk_windows.c @@ -6,7 +6,7 @@ #include #include -static unsigned __stdcall testRemoteVolumeAccessable(void* mountpoint) +static unsigned __stdcall testRemoteVolumeAccessible(void* mountpoint) { FF_AUTO_CLOSE_FD HANDLE handle = CreateFileW( (wchar_t*) mountpoint, @@ -84,7 +84,7 @@ const char* ffDetectDisksImpl(FFDiskOptions* options, FFlist* disks) #ifdef FF_HAVE_THREADS if (driveType == DRIVE_REMOTE) { - FFThreadType thread = ffThreadCreate(testRemoteVolumeAccessable, mountpoint); + FFThreadType thread = ffThreadCreate(testRemoteVolumeAccessible, mountpoint); if (!ffThreadJoin(thread, 500)) continue; } diff --git a/src/detection/packages/packages.c b/src/detection/packages/packages.c index 9390a2bf8..1a12bc328 100644 --- a/src/detection/packages/packages.c +++ b/src/detection/packages/packages.c @@ -27,7 +27,7 @@ bool ffPackagesReadCache(FFstrbuf* cacheDir, FFstrbuf* cacheContent, const char* { #ifndef _WIN32 struct stat st; - if (stat(filePath, &st) < 0) // file doesn't exist or isn't accessable + if (stat(filePath, &st) < 0) // file doesn't exist or isn't accessible { *result = 0; return true; @@ -40,7 +40,7 @@ bool ffPackagesReadCache(FFstrbuf* cacheDir, FFstrbuf* cacheContent, const char* #else FF_AUTO_CLOSE_FD HANDLE handle = CreateFileA(filePath, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); - if (handle == INVALID_HANDLE_VALUE) // file doesn't exist or isn't accessable + if (handle == INVALID_HANDLE_VALUE) // file doesn't exist or isn't accessible { *result = 0; return true;