[PATCH 2/2] ntdll: Set restart_scan on first call to NtQueryDirectoryFile.
Grazvydas Ignotas
notasas at gmail.com
Mon Jul 18 16:44:39 CDT 2011
On Mon, Jul 18, 2011 at 10:44 PM, Alexandre Julliard
<julliard at winehq.org> wrote:
> Grazvydas Ignotas <notasas at gmail.com> writes:
>> It looks like the best way would be to attach state to handle somehow
>> (that would be dropped automatically on CloseHandle), but I failed to
>> find a way to do so.
>
> You can't do that either I'm afraid. It's a tricky problem.
ok, what about expanding fd cache in dlls/ntdll/server.c with some
functions to allow attaching a pointer to a handle? That would
increase cache memory usage though, but perhaps something else could
use this too..
Or maybe scavenge 2 bits from fd_cache_entry.type (currently 6 bits
with 9 as max value) and make them caller writable? That would be
enough for tracking fake directories sent.
--
Gražvydas
More information about the wine-devel
mailing list