EldoS | Feel safer!

Software components for data protection, secure storage and transfer

get_Attributes() returns wrong value

Also by EldoS: SecureBlackbox
200+ components and classes for digital security, signing, encryption and secure networking.
Posted: 08/13/2008 05:48:44
by Søren Kristensen (Basic support level)
Joined: 03/04/2008
Posts: 62

During some testing on your Mapper sample I found the following issue.

When you are trying to delete a folder, CbFsDeleteFile uses the following code:
    if(FileInfo->get_Attributes() & FILE_ATTRIBUTE_DIRECTORY)
        result = RemoveDirectory(FName);
        result = DeleteFile(FName);

It seems like FileInfo->get_Attributes() returns FILE_ATTRIBUTE_NORMAL i all situations, and therefore will perform DeleteFile!
Posted: 08/13/2008 06:21:47
by Volodymyr Zinin (EldoS Corp.)


It has been fixed already. The bug fix will be available in the next build.
Posted: 08/13/2008 06:27:46
by Volodymyr Zinin (EldoS Corp.)

The developer said that in the latest build that is available on the site the bug should be already fixed. Do you use the Mapper sample from the latest build?
Posted: 08/13/2008 06:40:46
by Søren Kristensen (Basic support level)
Joined: 03/04/2008
Posts: 62

Sorry - I was using 2.0.35. I had missed the 2.0.36 version



Topic viewed 2750 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!