[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: krnl386.exe: Fix last error check for DOS compatibility hack.
From:       Alexandre Julliard <julliard () winehq ! org>
Date:       2010-07-29 17:58:56
Message-ID: 877hkerwyn.fsf () wine ! dyndns ! org
[Download RAW message or body]

Andrew Nguyen <anguyen@codeweavers.com> writes:

> Hmm, is there any situation where CreateFile yields a last error of
> ERROR_WRITE_PROTECT? If an application requests GENERIC_WRITE access
> on a file residing on a read-only file system, CreateFile on NT
> platforms seems to always set the last error to ERROR_ACCESS_DENIED
> and not ERROR_WRITE_PROTECT.

That depends on the error mapping, but there may well be cases where we
want to do that, if not today then at some point in the future. There
shouldn't be any harm in keeping the current check.

-- 
Alexandre Julliard
julliard@winehq.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic