[Haiku-commits] r30989 - haiku/trunk/src/kits/media

stippi at mail.berlios.de stippi at mail.berlios.de
Sun Jun 7 21:47:17 CEST 2009


Author: stippi
Date: 2009-06-07 21:47:16 +0200 (Sun, 07 Jun 2009)
New Revision: 30989
ViewCVS: http://svn.berlios.de/viewcvs/haiku?rev=30989&view=rev

Modified:
   haiku/trunk/src/kits/media/MediaFile.cpp
Log:
_InitReader(): source can only be NULL if we tried to allocate it ourself, so
we can set fErr to B_NO_MEMORY in that case.


Modified: haiku/trunk/src/kits/media/MediaFile.cpp
===================================================================
--- haiku/trunk/src/kits/media/MediaFile.cpp	2009-06-07 19:45:04 UTC (rev 30988)
+++ haiku/trunk/src/kits/media/MediaFile.cpp	2009-06-07 19:47:16 UTC (rev 30989)
@@ -392,8 +392,10 @@
 {
 	CALLED();
 
-	if (source == NULL)
+	if (source == NULL) {
+		fErr = B_NO_MEMORY;
 		return;
+	}
 
 	fSource = source;
 




More information about the Haiku-commits mailing list