From 0774ea7d4cf948a7a57b58baaf5ffcaf53b2ee84 Mon Sep 17 00:00:00 2001 From: "Igor V. Kovalenko" Date: Thu, 2 Nov 2023 20:37:26 +0300 Subject: [PATCH] rdpsnd_pulse: Use C99 constants --- channels/rdpsnd/client/pulse/rdpsnd_pulse.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/channels/rdpsnd/client/pulse/rdpsnd_pulse.c b/channels/rdpsnd/client/pulse/rdpsnd_pulse.c index fc87e7460..67e2b2b10 100644 --- a/channels/rdpsnd/client/pulse/rdpsnd_pulse.c +++ b/channels/rdpsnd/client/pulse/rdpsnd_pulse.c @@ -412,11 +412,11 @@ static BOOL rdpsnd_pulse_open_stream(rdpsndDevicePlugin* device) if (pulse->latency > 0) { - buffer_attr.maxlength = (UINT32)-1; + buffer_attr.maxlength = UINT32_MAX; buffer_attr.tlength = pa_usec_to_bytes(pulse->latency * 1000, &pulse->sample_spec); - buffer_attr.prebuf = (UINT32)-1; - buffer_attr.minreq = (UINT32)-1; - buffer_attr.fragsize = (UINT32)-1; + buffer_attr.prebuf = UINT32_MAX; + buffer_attr.minreq = UINT32_MAX; + buffer_attr.fragsize = UINT32_MAX; flags |= PA_STREAM_ADJUST_LATENCY; }