[ros-diffs] [janderwald] 39904: - Document the mega-haxxx

janderwald at svn.reactos.org janderwald at svn.reactos.org
Sat Mar 7 21:50:39 CET 2009


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/wdmaud.c?rev=39904&r1=39903&r2=39904&view=diff
==============================================================================
--- 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;
 }



More information about the Ros-diffs mailing list