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
5afbb6ba
Commit
5afbb6ba
authored
Oct 01, 2014
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Fix overlapped status checks for 64-bit.
parent
5281bff1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
change.c
dlls/kernel32/tests/change.c
+10
-10
No files found.
dlls/kernel32/tests/change.c
View file @
5afbb6ba
...
...
@@ -472,7 +472,7 @@ static void test_readdirectorychanges(void)
r
=
WaitForSingleObject
(
ov
.
hEvent
,
1000
);
ok
(
r
==
WAIT_OBJECT_0
,
"event should be ready
\n
"
);
ok
(
ov
.
Internal
==
STATUS_SUCCESS
,
"ov.Internal wrong
\n
"
);
ok
(
(
NTSTATUS
)
ov
.
Internal
==
STATUS_SUCCESS
,
"ov.Internal wrong
\n
"
);
ok
(
ov
.
InternalHigh
==
0x12
,
"ov.InternalHigh wrong
\n
"
);
pfni
=
(
PFILE_NOTIFY_INFORMATION
)
buffer
;
...
...
@@ -502,7 +502,7 @@ static void test_readdirectorychanges(void)
r
=
pReadDirectoryChangesW
(
hdir
,
buffer
,
sizeof
buffer
,
FALSE
,
filter
,
NULL
,
&
ov
,
NULL
);
ok
(
r
==
TRUE
,
"should return true
\n
"
);
ok
(
ov
.
Internal
==
STATUS_PENDING
,
"ov.Internal wrong
\n
"
);
ok
(
(
NTSTATUS
)
ov
.
Internal
==
STATUS_PENDING
,
"ov.Internal wrong
\n
"
);
ok
(
ov
.
InternalHigh
==
1
,
"ov.InternalHigh wrong
\n
"
);
r
=
WaitForSingleObject
(
ov
.
hEvent
,
0
);
...
...
@@ -514,10 +514,10 @@ static void test_readdirectorychanges(void)
r
=
WaitForSingleObject
(
ov
.
hEvent
,
1000
);
ok
(
r
==
WAIT_OBJECT_0
,
"should be ready
\n
"
);
ok
(
ov
.
Internal
==
STATUS_SUCCESS
,
"ov.Internal wrong
\n
"
);
ok
(
(
NTSTATUS
)
ov
.
Internal
==
STATUS_SUCCESS
,
"ov.Internal wrong
\n
"
);
ok
(
ov
.
InternalHigh
==
0x12
,
"ov.InternalHigh wrong
\n
"
);
if
(
ov
.
Internal
==
STATUS_SUCCESS
)
if
(
(
NTSTATUS
)
ov
.
Internal
==
STATUS_SUCCESS
)
{
r
=
GetOverlappedResult
(
hdir
,
&
ov
,
&
dwCount
,
TRUE
);
ok
(
r
==
TRUE
,
"getoverlappedresult failed
\n
"
);
...
...
@@ -540,7 +540,7 @@ static void test_readdirectorychanges(void)
r
=
WaitForSingleObject
(
ov
.
hEvent
,
1000
);
ok
(
r
==
WAIT_OBJECT_0
,
"should be ready
\n
"
);
ok
(
ov
.
Internal
==
STATUS_NOTIFY_ENUM_DIR
,
"ov.Internal wrong
\n
"
);
ok
(
(
NTSTATUS
)
ov
.
Internal
==
STATUS_NOTIFY_ENUM_DIR
,
"ov.Internal wrong
\n
"
);
ok
(
ov
.
InternalHigh
==
0
,
"ov.InternalHigh wrong
\n
"
);
/* test the recursive watch */
...
...
@@ -553,7 +553,7 @@ static void test_readdirectorychanges(void)
r
=
WaitForSingleObject
(
ov
.
hEvent
,
1000
);
ok
(
r
==
WAIT_OBJECT_0
,
"should be ready
\n
"
);
ok
(
ov
.
Internal
==
STATUS_SUCCESS
,
"ov.Internal wrong
\n
"
);
ok
(
(
NTSTATUS
)
ov
.
Internal
==
STATUS_SUCCESS
,
"ov.Internal wrong
\n
"
);
ok
(
ov
.
InternalHigh
==
0x18
,
"ov.InternalHigh wrong
\n
"
);
pfni
=
(
PFILE_NOTIFY_INFORMATION
)
buffer
;
...
...
@@ -589,7 +589,7 @@ static void test_readdirectorychanges(void)
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
(
(
NTSTATUS
)
ov
.
Internal
==
STATUS_SUCCESS
,
"ov.Internal wrong
\n
"
);
dwCount
=
(
char
*
)
&
pfni
->
FileName
[
pfni
->
FileNameLength
/
sizeof
(
WCHAR
)]
-
buffer
;
ok
(
ov
.
InternalHigh
==
dwCount
,
"ov.InternalHigh wrong %lu/%u
\n
"
,
ov
.
InternalHigh
,
dwCount
);
...
...
@@ -666,7 +666,7 @@ static void test_readdirectorychanges_null(void)
r
=
WaitForSingleObject
(
ov
.
hEvent
,
0
);
ok
(
r
==
WAIT_OBJECT_0
,
"event should be ready
\n
"
);
ok
(
ov
.
Internal
==
STATUS_NOTIFY_ENUM_DIR
,
"ov.Internal wrong
\n
"
);
ok
(
(
NTSTATUS
)
ov
.
Internal
==
STATUS_NOTIFY_ENUM_DIR
,
"ov.Internal wrong
\n
"
);
ok
(
ov
.
InternalHigh
==
0
,
"ov.InternalHigh wrong
\n
"
);
ov
.
Internal
=
0
;
...
...
@@ -687,7 +687,7 @@ static void test_readdirectorychanges_null(void)
r
=
WaitForSingleObject
(
ov
.
hEvent
,
1000
);
ok
(
r
==
WAIT_OBJECT_0
,
"should be ready
\n
"
);
ok
(
ov
.
Internal
==
STATUS_NOTIFY_ENUM_DIR
,
"ov.Internal wrong
\n
"
);
ok
(
(
NTSTATUS
)
ov
.
Internal
==
STATUS_NOTIFY_ENUM_DIR
,
"ov.Internal wrong
\n
"
);
ok
(
ov
.
InternalHigh
==
0
,
"ov.InternalHigh wrong
\n
"
);
pfni
=
(
PFILE_NOTIFY_INFORMATION
)
buffer
;
...
...
@@ -763,7 +763,7 @@ static void test_readdirectorychanges_filedir(void)
r
=
WaitForSingleObject
(
ov
.
hEvent
,
1000
);
ok
(
r
==
WAIT_OBJECT_0
,
"event should be ready
\n
"
);
ok
(
ov
.
Internal
==
STATUS_SUCCESS
,
"ov.Internal wrong
\n
"
);
ok
(
(
NTSTATUS
)
ov
.
Internal
==
STATUS_SUCCESS
,
"ov.Internal wrong
\n
"
);
ok
(
ov
.
InternalHigh
==
0x12
,
"ov.InternalHigh wrong
\n
"
);
pfni
=
(
PFILE_NOTIFY_INFORMATION
)
buffer
;
...
...
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