Skip to content

Commit

Permalink
Fix spelling mistakes
Browse files Browse the repository at this point in the history
Several comments and one error message contained spelling mistakes.
This commit fixes it.

Changes to be committed:
	modified:   loader/loader.c
	modified:   loader/vk_loader_platform.h

Change-Id: Ida86de154b1c1e80c1d251ce71246a06ab038e2d
  • Loading branch information
charles-lunarg committed Jan 28, 2020
1 parent 2dc43a9 commit 44ac9b2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions loader/loader.c
Expand Up @@ -577,7 +577,7 @@ static bool loaderAddJsonEntry(const struct loader_instance *inst,
//
// This function looks for filename in given device handle, filename is then added to return list
// function return true if filename was appended to reg_data list
// If error occures result is updated with failure reason
// If error occurs result is updated with failure reason
bool loaderGetDeviceRegistryEntry(const struct loader_instance *inst, char **reg_data, PDWORD total_size, DEVINST dev_id,
LPCSTR value_name, VkResult *result) {
HKEY hkrKey = INVALID_HANDLE_VALUE;
Expand Down Expand Up @@ -959,7 +959,7 @@ VkResult loaderGetRegistryFiles(const struct loader_instance *inst, char *locati

if (!found_gpu) {
loader_log(inst, VK_DEBUG_REPORT_INFORMATION_BIT_EXT, 0,
"Dropping driver %s as no corresponduing DXGI adapter was found", name);
"Dropping driver %s as no corresponding DXGI adapter was found", name);
continue;
}
}
Expand All @@ -971,7 +971,7 @@ VkResult loaderGetRegistryFiles(const struct loader_instance *inst, char *locati
found = true;
} else {
// At this point the reg_data variable contains other JSON paths, likely from the PNP/device section
// of the registry that we want to have precendence over this non-device specific section of the registry.
// of the registry that we want to have precedence over this non-device specific section of the registry.
// To make sure we avoid enumerating old JSON files/drivers that might be present in the non-device specific
// area of the registry when a newer device specific JSON file is present, do a check before adding.
// Find the file name, without path, of the JSON file found in the non-device specific registry location.
Expand Down Expand Up @@ -2422,7 +2422,7 @@ static void loader_debug_init(void) {
}

void loader_initialize(void) {
// initialize mutexs
// initialize mutexes
loader_platform_thread_create_mutex(&loader_lock);
loader_platform_thread_create_mutex(&loader_json_lock);

Expand All @@ -2449,7 +2449,7 @@ struct loader_data_files {
};

void loader_release() {
// release mutexs
// release mutexes
loader_platform_thread_delete_mutex(&loader_lock);
loader_platform_thread_delete_mutex(&loader_json_lock);
}
Expand Down Expand Up @@ -3948,7 +3948,7 @@ static VkResult ReadDataFilesInSearchPaths(const struct loader_instance *inst, e
}

#ifdef _WIN32
// Read manifest JSON files uing the Windows driver interface
// Read manifest JSON files using the Windows driver interface
static VkResult ReadManifestsFromD3DAdapters(const struct loader_instance *inst, char **reg_data, PDWORD reg_data_size,
const wchar_t *value_name) {
VkResult result = VK_INCOMPLETE;
Expand Down Expand Up @@ -6186,7 +6186,7 @@ VkResult loader_validate_device_extensions(struct loader_instance *this_instance
}

// Terminator functions for the Instance chain
// All named terminator_<Vulakn API name>
// All named terminator_<Vulkan API name>
VKAPI_ATTR VkResult VKAPI_CALL terminator_CreateInstance(const VkInstanceCreateInfo *pCreateInfo,
const VkAllocationCallbacks *pAllocator, VkInstance *pInstance) {
struct loader_icd_term *icd_term;
Expand Down
6 changes: 3 additions & 3 deletions loader/vk_loader_platform.h
Expand Up @@ -311,15 +311,15 @@ static char *loader_platform_get_proc_address_error(const char *name) {
typedef HANDLE loader_platform_thread;

// __declspec(thread) is not supported by MinGW compiler (ignored with warning or
// cause erorr depending on compiler switches)
// cause error depending on compiler switches)
//
// __thread should be used instead
//
// __MINGW32__ defined for both 32 and 64 bit MinGW compilers, so it is enough to
// detect any (32 or 64) flawor of MinGW compiler.
// detect any (32 or 64) flavor of MinGW compiler.
//
// @note __GNUC__ could be used as a more generic way to detect _any_
// GCC[-compitible] compiler on Windows, but this fix was tested
// GCC[-compatible] compiler on Windows, but this fix was tested
// only with MinGW, so keep it explicit at the moment.
#if defined(__MINGW32__)
#define THREAD_LOCAL_DECL __thread
Expand Down

0 comments on commit 44ac9b2

Please sign in to comment.