From c40554295a2445789d47b8c1c13bb8c28ba86c61 Mon Sep 17 00:00:00 2001 From: Rafael Rivera Date: Thu, 30 Jan 2020 11:31:48 -0800 Subject: [PATCH] ao_wasapi_utils: remove invalid audio session icon path (fixes #7269) --- audio/out/ao_wasapi_utils.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/audio/out/ao_wasapi_utils.c b/audio/out/ao_wasapi_utils.c index 55a16da812..df844aad7f 100644 --- a/audio/out/ao_wasapi_utils.c +++ b/audio/out/ao_wasapi_utils.c @@ -525,9 +525,8 @@ static void init_session_display(struct wasapi_state *state) { (void **)&state->pSessionControl); EXIT_ON_ERROR(hr); - wchar_t path[MAX_PATH+12] = {0}; + wchar_t path[MAX_PATH] = {0}; GetModuleFileNameW(NULL, path, MAX_PATH); - wcscat(path, L",-IDI_ICON1"); hr = IAudioSessionControl_SetIconPath(state->pSessionControl, path, NULL); if (FAILED(hr)) { // don't goto exit_label here since SetDisplayName might still work