summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Rivera <rafael@withinwindows.com>2020-01-30 11:31:48 -0800
committerJames Ross-Gowan <rossy@jrg.systems>2020-01-31 23:08:47 +1100
commitc40554295a2445789d47b8c1c13bb8c28ba86c61 (patch)
tree22f3ad33f5333b0c47216001bec34d73e4fb10ae
parentb926f189388918e623ebda65d6a47a7ab00b9cfc (diff)
downloadmpv-c40554295a2445789d47b8c1c13bb8c28ba86c61.tar.bz2
mpv-c40554295a2445789d47b8c1c13bb8c28ba86c61.tar.xz
ao_wasapi_utils: remove invalid audio session icon path (fixes #7269)
-rw-r--r--audio/out/ao_wasapi_utils.c3
1 files changed, 1 insertions, 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