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
ef7c4a8b
Commit
ef7c4a8b
authored
Mar 19, 2008
by
Michael Moss
Committed by
Alexandre Julliard
Mar 20, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Fix false positive file notification tests.
parent
3bb1ea3d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
change.c
dlls/kernel32/tests/change.c
+5
-2
No files found.
dlls/kernel32/tests/change.c
View file @
ef7c4a8b
...
...
@@ -39,12 +39,14 @@
static
DWORD
CALLBACK
NotificationThread
(
LPVOID
arg
)
{
HANDLE
change
=
(
HANDLE
)
arg
;
BOOL
notified
=
FALSE
;
BOOL
ret
=
FALSE
;
DWORD
status
;
status
=
WaitForSingleObject
(
change
,
100
);
if
(
status
==
WAIT_OBJECT_0
)
{
notified
=
TRUE
;
ret
=
FindNextChangeNotification
(
change
);
}
...
...
@@ -52,7 +54,7 @@ static DWORD CALLBACK NotificationThread(LPVOID arg)
ok
(
ret
,
"FindCloseChangeNotification error: %d
\n
"
,
GetLastError
());
ExitThread
((
DWORD
)
ret
);
ExitThread
((
DWORD
)
notified
);
}
static
HANDLE
StartNotificationThread
(
LPCSTR
path
,
BOOL
subtree
,
DWORD
flags
)
...
...
@@ -150,7 +152,8 @@ static void test_FindFirstChangeNotification(void)
thread
=
StartNotificationThread
(
dirname1
,
FALSE
,
FILE_NOTIFY_CHANGE_DIR_NAME
);
ret
=
MoveFileA
(
dirname1
,
dirname2
);
ok
(
ret
,
"MoveFileA error: %d
\n
"
,
GetLastError
());
ok
(
FinishNotificationThread
(
thread
),
"Missed notification
\n
"
);
ret
=
FinishNotificationThread
(
thread
);
ok
(
!
ret
,
"Unexpected notification
\n
"
);
/* What if we remove the directory we registered notification for? */
thread
=
StartNotificationThread
(
dirname2
,
FALSE
,
FILE_NOTIFY_CHANGE_DIR_NAME
);
...
...
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