Index: /trunk/include/iprt/file.h
===================================================================
--- /trunk/include/iprt/file.h	(revision 21800)
+++ /trunk/include/iprt/file.h	(revision 21801)
@@ -722,5 +722,5 @@
  * @param   pszFilename     The name of the file.
  * @param   ppvFile         Where to store the pointer to the memory on successful return.
- * @param   pcbFile         Where to store the size of the file on successful return.
+ * @param   pcbFile         Where to store the size of the returned memory.
  *
  * @remarks Note that this function may be implemented using memory mapping, which means
@@ -745,5 +745,5 @@
  * @param   fFlags          See RTFILE_RDALL_*.
  * @param   ppvFile         Where to store the pointer to the memory on successful return.
- * @param   pcbFile         Where to store the size of the file on successful return.
+ * @param   pcbFile         Where to store the size of the returned memory.
  *
  * @remarks See the remarks for RTFileReadAll.
@@ -759,5 +759,5 @@
  * @param   File            The handle to the file.
  * @param   ppvFile         Where to store the pointer to the memory on successful return.
- * @param   pcbFile         Where to store the size of the file on successful return.
+ * @param   pcbFile         Where to store the size of the returned memory.
  *
  * @remarks See the remarks for RTFileReadAll.
@@ -777,5 +777,5 @@
  * @param   fFlags          See RTFILE_RDALL_*.
  * @param   ppvFile         Where to store the pointer to the memory on successful return.
- * @param   pcbFile         Where to store the size of the file on successful return.
+ * @param   pcbFile         Where to store the size of the returned memory.
  *
  * @remarks See the remarks for RTFileReadAll.
Index: /trunk/src/VBox/Runtime/generic/RTFileReadAllByHandleEx-generic.cpp
===================================================================
--- /trunk/src/VBox/Runtime/generic/RTFileReadAllByHandleEx-generic.cpp	(revision 21800)
+++ /trunk/src/VBox/Runtime/generic/RTFileReadAllByHandleEx-generic.cpp	(revision 21801)
@@ -89,5 +89,5 @@
                              */
                             *ppvFile = pvFile;
-                            *pcbFile = cbAllocFile;
+                            *pcbFile = cbAllocMem;
                         }
                     }
