From 0a700dbc2ae9d6a66e62ada4492d7bc7e70124ee Mon Sep 17 00:00:00 2001 From: jpark37 Date: Sun, 10 May 2020 12:36:20 -0700 Subject: [PATCH] libobs: Remove log entry for CoInitializeEx pass Remove entry from the top of the log. Always returns S_FALSE, and that's unlikely to change. --- libobs/obs-windows.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libobs/obs-windows.c b/libobs/obs-windows.c index d65be176b..f1182a974 100644 --- a/libobs/obs-windows.c +++ b/libobs/obs-windows.c @@ -1264,9 +1264,7 @@ bool initialize_com(void) { const HRESULT hr = CoInitializeEx(0, COINIT_APARTMENTTHREADED); const bool success = SUCCEEDED(hr); - if (success) - blog(LOG_INFO, "CoInitializeEx succeeded: 0x%08X", hr); - else + if (!success) blog(LOG_ERROR, "CoInitializeEx failed: 0x%08X", hr); return success; } -- GitLab