Index: /trunk/src/VBox/Devices/Audio/DrvHostAudioDebug.cpp
===================================================================
--- /trunk/src/VBox/Devices/Audio/DrvHostAudioDebug.cpp	(revision 88285)
+++ /trunk/src/VBox/Devices/Audio/DrvHostAudioDebug.cpp	(revision 88286)
@@ -217,12 +217,9 @@
 
     int rc = AudioHlpFileWrite(pStreamDbg->pFile, pvBuf, cbBuf, 0 /* fFlags */);
-    if (RT_FAILURE(rc))
-    {
+    if (RT_SUCCESS(rc))
+        *pcbWritten = cbBuf;
+    else
         LogRel(("DebugAudio: Writing output failed with %Rrc\n", rc));
-        return rc;
-    }
-
-    *pcbWritten = cbBuf;
-    return VINF_SUCCESS;
+    return rc;
 }
 
Index: /trunk/src/VBox/Devices/Audio/DrvHostAudioNull.cpp
===================================================================
--- /trunk/src/VBox/Devices/Audio/DrvHostAudioNull.cpp	(revision 88285)
+++ /trunk/src/VBox/Devices/Audio/DrvHostAudioNull.cpp	(revision 88286)
@@ -138,18 +138,10 @@
  */
 static DECLCALLBACK(int) drvHostNullAudioHA_StreamPlay(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream,
-                                                       const void *pvBuf, uint32_t uBufSize, uint32_t *puWritten)
-{
-    AssertPtrReturn(pInterface, VERR_INVALID_POINTER);
-    AssertPtrReturn(pStream,    VERR_INVALID_POINTER);
-    AssertPtrReturn(pvBuf,      VERR_INVALID_POINTER);
-    AssertReturn(uBufSize,         VERR_INVALID_PARAMETER);
-
+                                                       const void *pvBuf, uint32_t cbBuf, uint32_t *pcbWritten)
+{
     RT_NOREF(pInterface, pStream, pvBuf);
 
-    /* Note: No copying of samples needed here, as this a NULL backend. */
-
-    if (puWritten)
-        *puWritten = uBufSize; /* Return all bytes as written. */
-
+    /* The bitbucket never overflows. */
+    *pcbWritten = cbBuf;
     return VINF_SUCCESS;
 }
