Rocket Division Software
http://www.starburnsoftware.com/forum/

Bug in StarBurn_ISO2_FileDirectoryDateTimeSet
http://www.starburnsoftware.com/forum/starburn-sdk-f3/bug-starburn-iso2-filedirectorydatetimeset-t2129.html
Page 1 of 1

Author:  NeoTall [ Fri Nov 19, 2010 5:21 am ]
Post subject:  Bug in StarBurn_ISO2_FileDirectoryDateTimeSet

Hello...

StarBurn_ISO2_FileDirectoryDateTimeSet doesn't work. Filetime is reset after calling StarBurn_ISO2_VolumeCreate.

http://zalil.ru/29994707

Author:  anton (staff) [ Fri Nov 19, 2010 5:35 pm ]
Post subject:  Re: Bug in StarBurn_ISO2_FileDirectoryDateTimeSet

It's not a bug it's a feature. You've set to TRUE "override" option, so volume data and time is assigned to ALL the content. Toggle this option from TRUE to FALSE and either original or altered data and time per file node is going to be assigned.

Author:  NeoTall [ Sat Nov 20, 2010 5:04 am ]
Post subject:  Re: Bug in StarBurn_ISO2_FileDirectoryDateTimeSet

Hello...

anton (staff) wrote:
It's not a bug it's a feature. You've set to TRUE "override" option, so volume data and time is assigned to ALL the content. Toggle this option from TRUE to FALSE and either original or altered data and time per file node is going to be assigned.

Sorry, Anton. How I can change this feature? If you think about IsGlobalDateTime flag, then it exists for UDF2 API only. For ISO2 API IsGlobalDateTime not exist.
Code:
Function StarBurn_ISO2_VolumeCreate(
   Var Volume: Pointer;
   Root: Pointer;
   Name: PAnsiChar;
   DateTime: PSTARBURN_UDF2_FILE_DATE_TIME;
   InitialVolumeSizeInLBs: Longword;
   VolumeIdentifier: PAnsiChar;
   VolumeSetIdentifier: PAnsiChar;
   PublisherIdentifier: PAnsiChar;
   DataPreparerIdentifier: PAnsiChar;
   ApplicationIdentifier: PAnsiChar;
   CopyrightFileIdentifier: PAnsiChar;
   AbstractFileIdentifier: PAnsiChar;
   BibliographicFileIdentifier: PAnsiChar
   ): LongInt; stdcall;

Code:
function StarBurn_UDF2_VolumeCreate(
   var Volume: Pointer;
   Root: Pointer;
   const Name: PAnsiChar;
   IsUnicode: LongBool;
   IsGlobalDateTime: LongBool;
   const DateTime: PSTARBURN_UDF2_FILE_DATE_TIME;
   OSClass: UDF_OS_CLASS; //=STARBURN_UDF_OS_CLASS_UNDEFINED
   InitialVolumeSizeInLBs: DWORD // = 0   
   ): LongInt; stdcall;

Author:  anton (staff) [ Sat Nov 20, 2010 6:03 am ]
Post subject:  Re: Bug in StarBurn_ISO2_FileDirectoryDateTimeSet

Hold on, we'll check is this property exported thru the API.

Author:  Vitalii (staff) [ Mon Nov 22, 2010 2:55 pm ]
Post subject:  Re: Bug in StarBurn_ISO2_FileDirectoryDateTimeSet

There was a bug.
The file time was not taken into account while building a volume.

Here is a patch for it:
http://www.starburnsoftware.com/temp/StarBurnSDK_20101122_Bin.zip

Also, the API is changed:
IsGlobalDateTime: LongBool;
parameter added.

Now it is acting like the same parameter in UDF function.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/