imgtools/romtools/rofsbuild/fatimagegenerator.cpp
changeset 654 7c11c3d8d025
parent 626 ac03b93ca9c4
--- a/imgtools/romtools/rofsbuild/fatimagegenerator.cpp	Mon Oct 25 11:53:21 2010 +0800
+++ b/imgtools/romtools/rofsbuild/fatimagegenerator.cpp	Tue Oct 26 11:12:31 2010 +0800
@@ -76,9 +76,7 @@
 	iFatHeader.BS_DrvNum = 0x80 ;
 	iFatHeader.BS_BootSig = 0x29 ;
 
-	time_t rawtime;
-	time(&rawtime);
-	*((TUint32*)iFatHeader.BS_VolID) = (TUint32)rawtime;
+	*((TUint32*)iFatHeader.BS_VolID) = aAttr.iVolumeId;
 	memcpy(iFatHeader.BS_VolLab,aAttr.iDriveVolumeLabel,sizeof(iFatHeader.BS_VolLab));
 	if(aAttr.iImageSize == 0){
 		if(aType == EFat32)