EldoS | Feel safer!

Software components for data protection, secure storage and transfer

get_Attributes() returns wrong value

Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.
#7279
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:
Code
    if(FileInfo->get_Attributes() & FILE_ATTRIBUTE_DIRECTORY)
    {
        result = RemoveDirectory(FName);
    }
    else
    {
        result = DeleteFile(FName);
    }

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

Hello,

It has been fixed already. The bug fix will be available in the next build.
#7281
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?
#7282
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

Reply

Statistics

Topic viewed 2471 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!