From 67389d29ecf737c34eb1d3d322ae108a026feeca Mon Sep 17 00:00:00 2001 From: David Reid Date: Sat, 3 Jan 2026 11:17:18 +1000 Subject: [PATCH] Remove an unnecessary COM initialization routine. --- miniaudio.h | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/miniaudio.h b/miniaudio.h index af250d26..8a50d934 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -7718,8 +7718,6 @@ struct ma_context ma_proc RegOpenKeyExA; ma_proc RegCloseKey; ma_proc RegQueryValueExA; - - /*HRESULT*/ long CoInitializeResult; } win32; #endif }; @@ -44236,15 +44234,6 @@ static ma_result ma_context_uninit_backend_apis__win32(ma_context* pContext) /* For some reason UWP complains when CoUninitialize() is called. I'm just not going to call it on UWP. */ #if defined(MA_WIN32_DESKTOP) || defined(MA_WIN32_GDK) { - /* TODO: Remove this once the new single threaded backend system is in place in 0.12. */ - #if !defined(MA_XBOX) - { - if (pContext->win32.CoInitializeResult == S_OK || pContext->win32.CoInitializeResult == S_FALSE) { - ma_CoUninitialize(pContext); /* TODO: Remove this once the new single threaded backend system is in place in 0.12. */ - } - } - #endif - #if defined(MA_WIN32_DESKTOP) ma_dlclose(ma_context_get_log(pContext), pContext->win32.hUser32DLL); ma_dlclose(ma_context_get_log(pContext), pContext->win32.hAdvapi32DLL); @@ -44313,13 +44302,6 @@ static ma_result ma_context_init_backend_apis__win32(ma_context* pContext) } #endif - /* TODO: Remove this once the new single threaded backend system is in place in 0.12. */ - #if !defined(MA_XBOX) - { - pContext->win32.CoInitializeResult = ma_CoInitializeEx(pContext, NULL, MA_COINIT_VALUE); - } - #endif - return MA_SUCCESS; } #else