Module: wine Branch: master Commit: 2586652e1674213208f17402f15805730f1d1c8f URL: https://gitlab.winehq.org/wine/wine/-/commit/2586652e1674213208f17402f158057...
Author: Huw Davies huw@codeweavers.com Date: Mon Jun 12 10:10:27 2023 +0100
winepulse: Don't overwrite the result in the insufficient buffer case.
Fixes a regression caused by 13fa7a57df0d.
---
dlls/winepulse.drv/pulse.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/dlls/winepulse.drv/pulse.c b/dlls/winepulse.drv/pulse.c index 5ba66a8aa1d..d259902c8b5 100644 --- a/dlls/winepulse.drv/pulse.c +++ b/dlls/winepulse.drv/pulse.c @@ -2494,8 +2494,7 @@ static NTSTATUS pulse_get_prop_value(void *args) if (strcmp(params->device, dev->pulse_name)) continue; if (IsEqualPropertyKey(*params->prop, devicepath_key)) { - if (!get_device_path(dev, params)) - break; + get_device_path(dev, params); return STATUS_SUCCESS; } else if (IsEqualGUID(¶ms->prop->fmtid, &PKEY_AudioEndpoint_GUID)) { switch (params->prop->pid) {