Author: janderwald
Date: Sat Mar 7 23:50:38 2009
New Revision: 39904
URL:
http://svn.reactos.org/svn/reactos?rev=39904&view=rev
Log:
- Document the mega-haxxx
Modified:
trunk/reactos/dll/win32/wdmaud.drv/wdmaud.c
Modified: trunk/reactos/dll/win32/wdmaud.drv/wdmaud.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/wdmaud.drv/wdmau…
==============================================================================
--- trunk/reactos/dll/win32/wdmaud.drv/wdmaud.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/wdmaud.drv/wdmaud.c [iso-8859-1] Sat Mar 7 23:50:38 2009
@@ -305,11 +305,15 @@
if ( ! WriteFileEx(KernelHandle, &DeviceInfo, sizeof(WDMAUD_DEVICE_INFO),
(LPOVERLAPPED)Overlap, CompletionRoutine))
{
- // TODO
- SND_TRACE(L"WriteFileEx failed with %x\n", GetLastError());
- }
- CompletionRoutine(0, Length, (LPOVERLAPPED)Overlap);
-
+ SND_TRACE(L"WriteFileEx failed with %x\n", GetLastError());
+ }
+ else
+ {
+ /* HACK
+ * The CompletionRoutine should be called by the system
+ */
+ CompletionRoutine(0, Length, (LPOVERLAPPED)Overlap);
+ }
return MMSYSERR_NOERROR;
}