Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
70057595
Commit
70057595
authored
Jan 27, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Jan 27, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel: Partially implement ReadDirectoryChangesW using NtNotifyChangeDirectoryFile.
parent
540dca32
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
4 deletions
+25
-4
change.c
dlls/kernel/change.c
+25
-4
No files found.
dlls/kernel/change.c
View file @
70057595
...
...
@@ -31,7 +31,6 @@
#include "winerror.h"
#include "winternl.h"
#include "kernel_private.h"
#include "wine/server.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
file
);
...
...
@@ -129,9 +128,31 @@ BOOL WINAPI ReadDirectoryChangesW( HANDLE handle, LPVOID buffer, DWORD len, BOOL
DWORD
filter
,
LPDWORD
returned
,
LPOVERLAPPED
overlapped
,
LPOVERLAPPED_COMPLETION_ROUTINE
completion
)
{
FIXME
(
"%p %p 0x%08lx %d 0x%08lx %p %p %p
\n
"
,
handle
,
buffer
,
len
,
subtree
,
filter
,
IO_STATUS_BLOCK
io
;
NTSTATUS
status
;
BOOL
ret
=
TRUE
;
HANDLE
event
;
TRACE
(
"%p %p %08lx %d %08lx %p %p %p
\n
"
,
handle
,
buffer
,
len
,
subtree
,
filter
,
returned
,
overlapped
,
completion
);
SetLastError
(
ERROR_INVALID_FUNCTION
);
return
FALSE
;
if
(
overlapped
)
event
=
overlapped
->
hEvent
;
else
event
=
CreateEventW
(
NULL
,
0
,
0
,
NULL
);
status
=
NtNotifyChangeDirectoryFile
(
handle
,
event
,
NULL
,
NULL
,
&
io
,
buffer
,
len
,
filter
,
subtree
);
if
(
status
!=
STATUS_PENDING
)
{
SetLastError
(
RtlNtStatusToDosError
(
status
)
);
ret
=
FALSE
;
}
else
if
(
!
overlapped
)
WaitForSingleObject
(
event
,
INFINITE
);
if
(
!
overlapped
)
CloseHandle
(
event
);
return
ret
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment