ao_wasapi_utils: remove invalid audio session icon path (fixes #7269)

This commit is contained in:
Rafael Rivera 2020-01-30 11:31:48 -08:00 committed by James Ross-Gowan
parent b926f18938
commit c40554295a
1 changed files with 1 additions and 2 deletions

View File

@ -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