Module: wine Branch: master Commit: 357350e74f358142d84ebb667dee787daf65455f URL: https://gitlab.winehq.org/wine/wine/-/commit/357350e74f358142d84ebb667dee787...
Author: Davide Beatrici git@davidebeatrici.dev Date: Wed Jun 28 09:09:21 2023 +0200
winecoreaudio: Return E_UNEXPECTED with invalid dataflow in GetAudioEndpoint.
---
dlls/winecoreaudio.drv/mmdevdrv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/winecoreaudio.drv/mmdevdrv.c b/dlls/winecoreaudio.drv/mmdevdrv.c index d88346d9fe5..9903640c66a 100644 --- a/dlls/winecoreaudio.drv/mmdevdrv.c +++ b/dlls/winecoreaudio.drv/mmdevdrv.c @@ -322,7 +322,7 @@ HRESULT WINAPI AUDDRV_GetAudioEndpoint(GUID *guid, IMMDevice *dev, IAudioClient return AUDCLNT_E_DEVICE_INVALIDATED;
if(dataflow != eRender && dataflow != eCapture) - return E_INVALIDARG; + return E_UNEXPECTED;
name_len = strlen(name); This = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, offsetof(ACImpl, device_name[name_len + 1]));