From 52ccdffece0c5390f0914a8831136ab613d795bb Mon Sep 17 00:00:00 2001 From: Johannes Anderwald Date: Sat, 7 Mar 2009 20:50:38 +0000 Subject: [PATCH] - Document the mega-haxxx svn path=/trunk/; revision=39904 --- reactos/dll/win32/wdmaud.drv/wdmaud.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/reactos/dll/win32/wdmaud.drv/wdmaud.c b/reactos/dll/win32/wdmaud.drv/wdmaud.c index 3319330347c..6064fa61562 100644 --- a/reactos/dll/win32/wdmaud.drv/wdmaud.c +++ b/reactos/dll/win32/wdmaud.drv/wdmaud.c @@ -305,11 +305,15 @@ WriteFileEx_Committer2( if ( ! WriteFileEx(KernelHandle, &DeviceInfo, sizeof(WDMAUD_DEVICE_INFO), (LPOVERLAPPED)Overlap, CompletionRoutine)) { - // TODO - SND_TRACE(L"WriteFileEx failed with %x\n", GetLastError()); + SND_TRACE(L"WriteFileEx failed with %x\n", GetLastError()); + } + else + { + /* HACK + * The CompletionRoutine should be called by the system + */ + CompletionRoutine(0, Length, (LPOVERLAPPED)Overlap); } - CompletionRoutine(0, Length, (LPOVERLAPPED)Overlap); - return MMSYSERR_NOERROR; }