From f22d12ac5115a22a251e479c9c27e5f55337bb28 Mon Sep 17 00:00:00 2001 From: Pedro Pombeiro Date: Tue, 27 Jun 2017 14:09:26 +0200 Subject: ao_wasapi: do not use deprecated wchar functions These break on UWP. Based on a patch by Pedro Pombeiro. --- audio/out/ao_wasapi.c | 2 +- audio/out/ao_wasapi_utils.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'audio') diff --git a/audio/out/ao_wasapi.c b/audio/out/ao_wasapi.c index 474528cd9c..3ddb9a113e 100644 --- a/audio/out/ao_wasapi.c +++ b/audio/out/ao_wasapi.c @@ -422,7 +422,7 @@ static int thread_control(struct ao *ao, enum aocontrol cmd, void *arg) SAFE_DESTROY(tmp, CoTaskMemFree(tmp)); IAudioSessionControl_GetDisplayName(state->pSessionControl, &tmp); - } while (lstrcmpW(title, tmp)); + } while (wcscmp(title, tmp)); SAFE_DESTROY(tmp, CoTaskMemFree(tmp)); talloc_free(title); return CONTROL_OK; diff --git a/audio/out/ao_wasapi_utils.c b/audio/out/ao_wasapi_utils.c index 1adb766644..53ab1fe036 100644 --- a/audio/out/ao_wasapi_utils.c +++ b/audio/out/ao_wasapi_utils.c @@ -541,7 +541,7 @@ static void init_session_display(struct wasapi_state *state) { wchar_t path[MAX_PATH+12] = {0}; GetModuleFileNameW(NULL, path, MAX_PATH); - lstrcatW(path, L",-IDI_ICON1"); + 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 -- cgit v1.2.3