Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
d77baf35
Commit
d77baf35
authored
Feb 02, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Feb 02, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: FindFirstChangeNotification needs a static IO_STATUS_BLOCK.
parent
dc9789fb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
change.c
dlls/kernel/change.c
+13
-5
No files found.
dlls/kernel/change.c
View file @
d77baf35
...
...
@@ -47,6 +47,13 @@ HANDLE WINAPI FindFirstChangeNotificationA( LPCSTR lpPathName, BOOL bWatchSubtre
return
FindFirstChangeNotificationW
(
pathW
,
bWatchSubtree
,
dwNotifyFilter
);
}
/*
* NtNotifyChangeDirectoryFile may write back to the IO_STATUS_BLOCK
* asynchronously. We don't care about the contents, but it can't
* be placed on the stack since it will go out of scope when we return.
*/
static
IO_STATUS_BLOCK
FindFirstChange_iosb
;
/****************************************************************************
* FindFirstChangeNotificationW (KERNEL32.@)
*/
...
...
@@ -55,7 +62,6 @@ HANDLE WINAPI FindFirstChangeNotificationW( LPCWSTR lpPathName, BOOL bWatchSubtr
{
UNICODE_STRING
nt_name
;
OBJECT_ATTRIBUTES
attr
;
IO_STATUS_BLOCK
io
;
NTSTATUS
status
;
HANDLE
handle
=
INVALID_HANDLE_VALUE
;
...
...
@@ -74,7 +80,8 @@ HANDLE WINAPI FindFirstChangeNotificationW( LPCWSTR lpPathName, BOOL bWatchSubtr
attr
.
SecurityDescriptor
=
NULL
;
attr
.
SecurityQualityOfService
=
NULL
;
status
=
NtOpenFile
(
&
handle
,
SYNCHRONIZE
,
&
attr
,
&
io
,
status
=
NtOpenFile
(
&
handle
,
FILE_LIST_DIRECTORY
|
SYNCHRONIZE
,
&
attr
,
&
FindFirstChange_iosb
,
FILE_SHARE_READ
|
FILE_SHARE_WRITE
|
FILE_SHARE_DELETE
,
FILE_DIRECTORY_FILE
|
FILE_SYNCHRONOUS_IO_NONALERT
);
RtlFreeUnicodeString
(
&
nt_name
);
...
...
@@ -85,7 +92,8 @@ HANDLE WINAPI FindFirstChangeNotificationW( LPCWSTR lpPathName, BOOL bWatchSubtr
return
INVALID_HANDLE_VALUE
;
}
status
=
NtNotifyChangeDirectoryFile
(
handle
,
NULL
,
NULL
,
NULL
,
&
io
,
status
=
NtNotifyChangeDirectoryFile
(
handle
,
NULL
,
NULL
,
NULL
,
&
FindFirstChange_iosb
,
NULL
,
0
,
dwNotifyFilter
,
bWatchSubtree
);
if
(
status
!=
STATUS_PENDING
)
{
...
...
@@ -101,12 +109,12 @@ HANDLE WINAPI FindFirstChangeNotificationW( LPCWSTR lpPathName, BOOL bWatchSubtr
*/
BOOL
WINAPI
FindNextChangeNotification
(
HANDLE
handle
)
{
IO_STATUS_BLOCK
io
;
NTSTATUS
status
;
TRACE
(
"%p
\n
"
,
handle
);
status
=
NtNotifyChangeDirectoryFile
(
handle
,
NULL
,
NULL
,
NULL
,
&
io
,
status
=
NtNotifyChangeDirectoryFile
(
handle
,
NULL
,
NULL
,
NULL
,
&
FindFirstChange_iosb
,
NULL
,
0
,
FILE_NOTIFY_CHANGE_SIZE
,
0
);
if
(
status
!=
STATUS_PENDING
)
{
...
...
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