kernel/eka/drivers/medlfs/flash_media.cpp
changeset 123 fc55edbf3919
parent 33 0173bcd7697c
child 294 039a3e647356
--- a/kernel/eka/drivers/medlfs/flash_media.cpp	Fri Apr 23 22:14:19 2010 +0100
+++ b/kernel/eka/drivers/medlfs/flash_media.cpp	Fri Apr 23 22:20:31 2010 +0100
@@ -163,10 +163,11 @@
 	__KTRACE_OPT(KLOCDRV,Kern::Printf(">DMediaDriverFlash::Request %d",id));
 	if (id==DLocalDrive::ECaps)
 		{
-  		TLocalDriveCapsV2& c=*(TLocalDriveCapsV2*)m.RemoteDes();
+  		TLocalDriveCapsV4& c=*(TLocalDriveCapsV4*)m.RemoteDes();
 		r=Caps(c);
 		c.iSize=m.Drive()->iPartitionLen;
 		c.iPartitionType=m.Drive()->iPartitionType;
+		SetTotalSizeInBytes(c);
 		return r;
 		}
 	switch (id)