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
af785c4d
Commit
af785c4d
authored
Jun 10, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Fix the change notification test on Vista.
parent
fe508a9c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
change.c
dlls/kernel32/tests/change.c
+15
-7
No files found.
dlls/kernel32/tests/change.c
View file @
af785c4d
...
@@ -560,8 +560,8 @@ static void test_readdirectorychanges(void)
...
@@ -560,8 +560,8 @@ static void test_readdirectorychanges(void)
pfni
=
(
PFILE_NOTIFY_INFORMATION
)
buffer
;
pfni
=
(
PFILE_NOTIFY_INFORMATION
)
buffer
;
ok
(
pfni
->
NextEntryOffset
==
0
,
"offset wrong
\n
"
);
ok
(
pfni
->
NextEntryOffset
==
0
,
"offset wrong
\n
"
);
ok
(
pfni
->
Action
==
FILE_ACTION_ADDED
,
"action wrong
\n
"
);
ok
(
pfni
->
Action
==
FILE_ACTION_ADDED
,
"action wrong
\n
"
);
ok
(
pfni
->
FileNameLength
==
0x0c
,
"len wrong
\n
"
);
ok
(
pfni
->
FileNameLength
==
6
*
sizeof
(
WCHAR
)
,
"len wrong
\n
"
);
ok
(
!
memcmp
(
pfni
->
FileName
,
&
szGa
[
1
],
6
),
"name wrong
\n
"
);
ok
(
!
memcmp
(
pfni
->
FileName
,
&
szGa
[
1
],
6
*
sizeof
(
WCHAR
)
),
"name wrong
\n
"
);
r
=
RemoveDirectoryW
(
subsubdir
);
r
=
RemoveDirectoryW
(
subsubdir
);
ok
(
r
==
TRUE
,
"failed to remove directory
\n
"
);
ok
(
r
==
TRUE
,
"failed to remove directory
\n
"
);
...
@@ -578,13 +578,21 @@ static void test_readdirectorychanges(void)
...
@@ -578,13 +578,21 @@ static void test_readdirectorychanges(void)
ok
(
r
==
WAIT_OBJECT_0
,
"should be ready
\n
"
);
ok
(
r
==
WAIT_OBJECT_0
,
"should be ready
\n
"
);
pfni
=
(
PFILE_NOTIFY_INFORMATION
)
buffer
;
pfni
=
(
PFILE_NOTIFY_INFORMATION
)
buffer
;
ok
(
pfni
->
NextEntryOffset
==
0
,
"offset wrong
\n
"
);
/* we may get a notification for the parent dir too */
ok
(
pfni
->
Action
==
FILE_ACTION_REMOVED
,
"action wrong
\n
"
);
if
(
pfni
->
Action
==
FILE_ACTION_MODIFIED
&&
pfni
->
NextEntryOffset
)
ok
(
pfni
->
FileNameLength
==
0x0c
,
"len wrong
\n
"
);
{
ok
(
!
memcmp
(
pfni
->
FileName
,
&
szGa
[
1
],
6
),
"name wrong
\n
"
);
ok
(
pfni
->
FileNameLength
==
3
*
sizeof
(
WCHAR
),
"len wrong %u
\n
"
,
pfni
->
FileNameLength
);
ok
(
!
memcmp
(
pfni
->
FileName
,
&
szGa
[
1
],
3
*
sizeof
(
WCHAR
)),
"name wrong
\n
"
);
pfni
=
(
PFILE_NOTIFY_INFORMATION
)((
char
*
)
pfni
+
pfni
->
NextEntryOffset
);
}
ok
(
pfni
->
NextEntryOffset
==
0
,
"offset wrong %u
\n
"
,
pfni
->
NextEntryOffset
);
ok
(
pfni
->
Action
==
FILE_ACTION_REMOVED
,
"action wrong %u
\n
"
,
pfni
->
Action
);
ok
(
pfni
->
FileNameLength
==
6
*
sizeof
(
WCHAR
),
"len wrong %u
\n
"
,
pfni
->
FileNameLength
);
ok
(
!
memcmp
(
pfni
->
FileName
,
&
szGa
[
1
],
6
*
sizeof
(
WCHAR
)),
"name wrong
\n
"
);
ok
(
ov
.
Internal
==
STATUS_SUCCESS
,
"ov.Internal wrong
\n
"
);
ok
(
ov
.
Internal
==
STATUS_SUCCESS
,
"ov.Internal wrong
\n
"
);
ok
(
ov
.
InternalHigh
==
0x18
,
"ov.InternalHigh wrong
\n
"
);
dwCount
=
(
char
*
)
&
pfni
->
FileName
[
pfni
->
FileNameLength
/
sizeof
(
WCHAR
)]
-
buffer
;
ok
(
ov
.
InternalHigh
==
dwCount
,
"ov.InternalHigh wrong %lu/%u
\n
"
,
ov
.
InternalHigh
,
dwCount
);
CloseHandle
(
hdir
);
CloseHandle
(
hdir
);
...
...
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