From 385763882b87fb1a7bc69193a0139eac9f061ba4 Mon Sep 17 00:00:00 2001 From: Joachim Henze Date: Mon, 14 Nov 2022 18:14:04 +0100 Subject: [PATCH] [0.4.14][WDMAUD.DRV] Strip EOL whitespace in mmixer.c Addendum to 0.4.14-RC-98-g c437ff6128a2db3dbc62a4509957338cc29c8fe1 because I do intend to port the changed code back further and don't want to poison the older branches with the malformatting. --- dll/win32/wdmaud.drv/mmixer.c | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/dll/win32/wdmaud.drv/mmixer.c b/dll/win32/wdmaud.drv/mmixer.c index 0f2805f37c6..8fc2ed6309c 100644 --- a/dll/win32/wdmaud.drv/mmixer.c +++ b/dll/win32/wdmaud.drv/mmixer.c @@ -451,7 +451,7 @@ WdmAudGetControlDetails( MMRESULT WdmAudGetWaveOutCapabilities( - IN ULONG DeviceId, + IN ULONG DeviceId, LPWAVEOUTCAPSW Capabilities) { if (MMixerWaveOutCapabilities(&MixerContext, DeviceId, Capabilities) == MM_STATUS_SUCCESS) @@ -463,7 +463,7 @@ WdmAudGetWaveOutCapabilities( MMRESULT WdmAudGetWaveInCapabilities( - IN ULONG DeviceId, + IN ULONG DeviceId, LPWAVEINCAPSW Capabilities) { if (MMixerWaveInCapabilities(&MixerContext, DeviceId, Capabilities) == MM_STATUS_SUCCESS) @@ -789,16 +789,16 @@ CommitWaveBufferApc(PVOID ApcContext, DWORD dwErrorCode; PSOUND_OVERLAPPED Overlap; KSSTREAM_HEADER* lpHeader; - + dwErrorCode = RtlNtStatusToDosError(IoStatusBlock->Status); Overlap = (PSOUND_OVERLAPPED)IoStatusBlock; lpHeader = Overlap->CompletionContext; /* Call mmebuddy overlap routine */ - Overlap->OriginalCompletionRoutine(dwErrorCode, + Overlap->OriginalCompletionRoutine(dwErrorCode, lpHeader->DataUsed, &Overlap->Standard); - HeapFree(GetProcessHeap(), 0, lpHeader); + HeapFree(GetProcessHeap(), 0, lpHeader); } MMRESULT @@ -848,22 +848,22 @@ WdmAudCommitWaveBufferByMMixer( lpHeader->DataUsed = Length; } - Status = NtDeviceIoControlFile(SoundDeviceInstance->Handle, - NULL, - CommitWaveBufferApc, - NULL, - (PIO_STATUS_BLOCK)Overlap, + Status = NtDeviceIoControlFile(SoundDeviceInstance->Handle, + NULL, + CommitWaveBufferApc, + NULL, + (PIO_STATUS_BLOCK)Overlap, IoCtl, - NULL, - 0, - lpHeader, + NULL, + 0, + lpHeader, sizeof(KSSTREAM_HEADER)); - + if (!NT_SUCCESS(Status)) { DPRINT1("NtDeviceIoControlFile() failed with status %08lx\n", Status); return MMSYSERR_ERROR; } - + return MMSYSERR_NOERROR; }