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
dd71bc56
Commit
dd71bc56
authored
Oct 06, 2013
by
Francois Gouget
Committed by
Alexandre Julliard
Oct 07, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Fix compilation on systems that don't support nameless unions.
parent
39f8c220
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
comm.c
dlls/kernel32/tests/comm.c
+14
-14
No files found.
dlls/kernel32/tests/comm.c
View file @
dd71bc56
...
...
@@ -2058,34 +2058,34 @@ static void test_read_write(void)
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"expected ERROR_INVALID_PARAMETER, got %d
\n
"
,
GetLastError
());
ok
(
bytes
==
0
,
"bytes %u
\n
"
,
bytes
);
iob
.
Status
=
-
1
;
U
(
iob
)
.
Status
=
-
1
;
iob
.
Information
=
-
1
;
status
=
pNtWriteFile
(
hcom
,
0
,
NULL
,
NULL
,
&
iob
,
atz
,
0
,
NULL
,
NULL
);
ok
(
status
==
STATUS_INVALID_PARAMETER
,
"expected STATUS_INVALID_PARAMETER, got %#x
\n
"
,
status
);
ok
(
iob
.
Status
==
-
1
,
"expected -1, got %#x
\n
"
,
iob
.
Status
);
ok
(
U
(
iob
).
Status
==
-
1
,
"expected -1, got %#x
\n
"
,
U
(
iob
)
.
Status
);
ok
(
iob
.
Information
==
-
1
,
"expected -1, got %ld
\n
"
,
iob
.
Information
);
for
(
i
=
-
20
;
i
<
20
;
i
++
)
{
iob
.
Status
=
-
1
;
U
(
iob
)
.
Status
=
-
1
;
iob
.
Information
=
-
1
;
offset
.
QuadPart
=
(
LONGLONG
)
i
;
status
=
pNtWriteFile
(
hcom
,
0
,
NULL
,
NULL
,
&
iob
,
atz
,
0
,
&
offset
,
NULL
);
if
(
i
>=
0
||
i
==
-
1
)
{
ok
(
status
==
STATUS_SUCCESS
,
"%d: expected STATUS_SUCCESS, got %#x
\n
"
,
i
,
status
);
ok
(
iob
.
Status
==
STATUS_SUCCESS
,
"%d: expected STATUS_SUCCESS, got %#x
\n
"
,
i
,
iob
.
Status
);
ok
(
U
(
iob
).
Status
==
STATUS_SUCCESS
,
"%d: expected STATUS_SUCCESS, got %#x
\n
"
,
i
,
U
(
iob
)
.
Status
);
ok
(
iob
.
Information
==
0
,
"%d: expected 0, got %lu
\n
"
,
i
,
iob
.
Information
);
}
else
{
ok
(
status
==
STATUS_INVALID_PARAMETER
,
"%d: expected STATUS_INVALID_PARAMETER, got %#x
\n
"
,
i
,
status
);
ok
(
iob
.
Status
==
-
1
,
"%d: expected -1, got %#x
\n
"
,
i
,
iob
.
Status
);
ok
(
U
(
iob
).
Status
==
-
1
,
"%d: expected -1, got %#x
\n
"
,
i
,
U
(
iob
)
.
Status
);
ok
(
iob
.
Information
==
-
1
,
"%d: expected -1, got %ld
\n
"
,
i
,
iob
.
Information
);
}
}
iob
.
Status
=
-
1
;
U
(
iob
)
.
Status
=
-
1
;
iob
.
Information
=
-
1
;
offset
.
QuadPart
=
0
;
status
=
pNtWriteFile
(
hcom
,
0
,
NULL
,
NULL
,
&
iob
,
atz
,
sizeof
(
atz
),
&
offset
,
NULL
);
...
...
@@ -2103,7 +2103,7 @@ todo_wine
return
;
}
ok
(
ret
==
WAIT_OBJECT_0
,
"WaitForSingleObject error %d
\n
"
,
ret
);
ok
(
iob
.
Status
==
STATUS_SUCCESS
,
"expected STATUS_SUCCESS, got %#x
\n
"
,
iob
.
Status
);
ok
(
U
(
iob
).
Status
==
STATUS_SUCCESS
,
"expected STATUS_SUCCESS, got %#x
\n
"
,
U
(
iob
)
.
Status
);
ok
(
iob
.
Information
==
sizeof
(
atz
),
"expected sizeof(atz), got %lu
\n
"
,
iob
.
Information
);
ret
=
SetCommMask
(
hcom
,
EV_RXCHAR
);
...
...
@@ -2144,16 +2144,16 @@ todo_wine
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"expected ERROR_INVALID_PARAMETER, got %d
\n
"
,
GetLastError
());
ok
(
bytes
==
0
,
"bytes %u
\n
"
,
bytes
);
iob
.
Status
=
-
1
;
U
(
iob
)
.
Status
=
-
1
;
iob
.
Information
=
-
1
;
status
=
pNtReadFile
(
hcom
,
0
,
NULL
,
NULL
,
&
iob
,
buf
,
0
,
NULL
,
NULL
);
ok
(
status
==
STATUS_INVALID_PARAMETER
,
"expected STATUS_INVALID_PARAMETER, got %#x
\n
"
,
status
);
ok
(
iob
.
Status
==
-
1
,
"expected -1, got %#x
\n
"
,
iob
.
Status
);
ok
(
U
(
iob
).
Status
==
-
1
,
"expected -1, got %#x
\n
"
,
U
(
iob
)
.
Status
);
ok
(
iob
.
Information
==
-
1
,
"expected -1, got %ld
\n
"
,
iob
.
Information
);
for
(
i
=
-
20
;
i
<
20
;
i
++
)
{
iob
.
Status
=
-
1
;
U
(
iob
)
.
Status
=
-
1
;
iob
.
Information
=
-
1
;
offset
.
QuadPart
=
(
LONGLONG
)
i
;
status
=
pNtReadFile
(
hcom
,
0
,
NULL
,
NULL
,
&
iob
,
buf
,
0
,
&
offset
,
NULL
);
...
...
@@ -2164,23 +2164,23 @@ todo_wine
todo_wine
ok
(
status
==
STATUS_SUCCESS
,
"%d: expected STATUS_SUCCESS, got %#x
\n
"
,
i
,
status
);
todo_wine
ok
(
iob
.
Status
==
STATUS_SUCCESS
,
"%d: expected STATUS_SUCCESS, got %#x
\n
"
,
i
,
iob
.
Status
);
ok
(
U
(
iob
).
Status
==
STATUS_SUCCESS
,
"%d: expected STATUS_SUCCESS, got %#x
\n
"
,
i
,
U
(
iob
)
.
Status
);
ok
(
iob
.
Information
==
0
,
"%d: expected 0, got %lu
\n
"
,
i
,
iob
.
Information
);
}
else
{
ok
(
status
==
STATUS_INVALID_PARAMETER
,
"%d: expected STATUS_INVALID_PARAMETER, got %#x
\n
"
,
i
,
status
);
ok
(
iob
.
Status
==
-
1
,
"%d: expected -1, got %#x
\n
"
,
i
,
iob
.
Status
);
ok
(
U
(
iob
).
Status
==
-
1
,
"%d: expected -1, got %#x
\n
"
,
i
,
U
(
iob
)
.
Status
);
ok
(
iob
.
Information
==
-
1
,
"%d: expected -1, got %ld
\n
"
,
i
,
iob
.
Information
);
}
}
iob
.
Status
=
-
1
;
U
(
iob
)
.
Status
=
-
1
;
iob
.
Information
=
-
1
;
offset
.
QuadPart
=
0
;
status
=
pNtReadFile
(
hcom
,
0
,
NULL
,
NULL
,
&
iob
,
buf
,
1
,
&
offset
,
NULL
);
ok
(
status
==
STATUS_SUCCESS
,
"expected STATUS_SUCCESS, got %#x
\n
"
,
status
);
ok
(
iob
.
Status
==
STATUS_SUCCESS
,
"expected STATUS_SUCCESS, got %#x
\n
"
,
iob
.
Status
);
ok
(
U
(
iob
).
Status
==
STATUS_SUCCESS
,
"expected STATUS_SUCCESS, got %#x
\n
"
,
U
(
iob
)
.
Status
);
ok
(
iob
.
Information
==
1
,
"expected 1, got %lu
\n
"
,
iob
.
Information
);
goto
done
;
}
...
...
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