[delphizip] Re: Volume-readonly checking is too harsh, blocking writable situations.

  • From: "Russell Peters" <rpeters@xxxxxxxxxxxxx>
  • To: delphizip@xxxxxxxxxxxxx
  • Date: Thu, 30 Oct 2008 17:16:35 +1100

So it looks like we need to use CreateFile with a temporary name (same
extension?).
There still could be the problem that the temporary file will not be able to
be deleted (no permission) but hopefully that does not happen often.
Russell Peters
On Wed, Oct 29, 2008 at 11:32 PM, Patrick Kolla <
patrick.kolla@xxxxxxxxxxxxxxxxxxxx> wrote:
> (Russell Peters: ) I will remove it from the next release - if you comment
> out that clause does
> it work reasonably?
> Yes, everything works fine without that part.
>
> (James Turner: ) but I would think that using the API function CreateFile
> with the flag CREATE_ALWAYS should work well,
>
> CheckDestWritable (after the volume readonly test) checks FileOpen with
> write access or FileCreate for missing files, so a proper check for the
> writable status should be there.
>
> Patrick Kolla
>
>
>
> -----------
> To unsubscribe from this list, send an empty e-mail
> message to:
>  delphizip-request@xxxxxxxxxxxxx
> and put the word unsubscribe in the subject.
>


-----------
To unsubscribe from this list, send an empty e-mail 
message to:
  delphizip-request@xxxxxxxxxxxxx 
and put the word unsubscribe in the subject.

Other related posts: