diff --git a/source/blender/editors/space_userpref/userpref_ops.cc b/source/blender/editors/space_userpref/userpref_ops.cc index bba1a360d69..1e37471a776 100644 --- a/source/blender/editors/space_userpref/userpref_ops.cc +++ b/source/blender/editors/space_userpref/userpref_ops.cc @@ -920,9 +920,9 @@ static bool associate_blend_poll(bContext *C) } #if !defined(__APPLE__) -static bool assosiate_blend(bool do_register, bool all_users, char **error_msg) +static bool associate_blend(bool do_register, bool all_users, char **error_msg) { - const bool result = WM_platform_assosiate_set(do_register, all_users, error_msg); + const bool result = WM_platform_associate_set(do_register, all_users, error_msg); # ifdef WIN32 if ((result == false) && /* For some reason the message box isn't shown in this case. */ @@ -957,7 +957,7 @@ static int associate_blend_exec(bContext * /*C*/, wmOperator *op) char *error_msg = nullptr; WM_cursor_wait(true); - const bool success = assosiate_blend(true, all_users, &error_msg); + const bool success = associate_blend(true, all_users, &error_msg); WM_cursor_wait(false); if (!success) { @@ -1005,7 +1005,7 @@ static int unassociate_blend_exec(bContext * /*C*/, wmOperator *op) char *error_msg = nullptr; WM_cursor_wait(true); - bool success = assosiate_blend(false, all_users, &error_msg); + bool success = associate_blend(false, all_users, &error_msg); WM_cursor_wait(false); if (!success) { diff --git a/source/blender/windowmanager/WM_api.hh b/source/blender/windowmanager/WM_api.hh index 979eaae657e..175d527c39b 100644 --- a/source/blender/windowmanager/WM_api.hh +++ b/source/blender/windowmanager/WM_api.hh @@ -1897,7 +1897,7 @@ bool WM_region_use_viewport(ScrArea *area, ARegion *region); /** * \return Success. */ -bool WM_platform_assosiate_set(bool do_register, bool all_users, char **r_error_msg); +bool WM_platform_associate_set(bool do_register, bool all_users, char **r_error_msg); #ifdef WITH_XR_OPENXR /* `wm_xr_session.cc` */ diff --git a/source/blender/windowmanager/intern/wm_platform.cc b/source/blender/windowmanager/intern/wm_platform.cc index 9e5a25d4676..95a79b07018 100644 --- a/source/blender/windowmanager/intern/wm_platform.cc +++ b/source/blender/windowmanager/intern/wm_platform.cc @@ -26,7 +26,7 @@ /** \name Register File Association * \{ */ -bool WM_platform_assosiate_set(bool do_register, bool all_users, char **r_error_msg) +bool WM_platform_associate_set(bool do_register, bool all_users, char **r_error_msg) { bool result = false; *r_error_msg = nullptr; diff --git a/source/creator/creator_args.cc b/source/creator/creator_args.cc index 1a92c2c33be..9c6201389a6 100644 --- a/source/creator/creator_args.cc +++ b/source/creator/creator_args.cc @@ -1677,7 +1677,7 @@ static bool arg_handle_extension_registration(const bool do_register, const bool { /* Logic runs in #main_args_handle_registration. */ char *error_msg = nullptr; - bool result = WM_platform_assosiate_set(do_register, all_users, &error_msg); + bool result = WM_platform_associate_set(do_register, all_users, &error_msg); if (error_msg) { fprintf(stderr, "Error: %s\n", error_msg); MEM_freeN(error_msg);