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
beb603e9
Commit
beb603e9
authored
Feb 08, 2007
by
Marcus Meissner
Committed by
Alexandre Julliard
Feb 09, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Fixed several uninitialized variables.
parent
7100dd4b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
comm.c
dlls/kernel32/tests/comm.c
+9
-8
No files found.
dlls/kernel32/tests/comm.c
View file @
beb603e9
...
@@ -689,7 +689,7 @@ static HANDLE test_OpenComm(BOOL doOverlap)
...
@@ -689,7 +689,7 @@ static HANDLE test_OpenComm(BOOL doOverlap)
static
void
test_GetModemStatus
(
HANDLE
hcom
)
static
void
test_GetModemStatus
(
HANDLE
hcom
)
{
{
DWORD
ModemStat
;
DWORD
ModemStat
=
0
;
ok
(
GetCommModemStatus
(
hcom
,
&
ModemStat
),
"GetCommModemStatus failed
\n
"
);
ok
(
GetCommModemStatus
(
hcom
,
&
ModemStat
),
"GetCommModemStatus failed
\n
"
);
trace
(
"GetCommModemStatus returned 0x%08x->%s%s%s%s
\n
"
,
ModemStat
,
trace
(
"GetCommModemStatus returned 0x%08x->%s%s%s%s
\n
"
,
ModemStat
,
...
@@ -917,9 +917,10 @@ static void test_LoopbackRead(HANDLE hcom)
...
@@ -917,9 +917,10 @@ static void test_LoopbackRead(HANDLE hcom)
static
void
test_LoopbackCtsRts
(
HANDLE
hcom
)
static
void
test_LoopbackCtsRts
(
HANDLE
hcom
)
{
{
DWORD
ModemStat
,
defaultStat
;
DWORD
ModemStat
=
0
,
defaultStat
=
0
;
DCB
dcb
;
DCB
dcb
;
memset
(
&
dcb
,
0
,
sizeof
(
dcb
));
ok
(
GetCommState
(
hcom
,
&
dcb
),
"GetCommState failed
\n
"
);
ok
(
GetCommState
(
hcom
,
&
dcb
),
"GetCommState failed
\n
"
);
if
(
dcb
.
fRtsControl
==
RTS_CONTROL_HANDSHAKE
)
if
(
dcb
.
fRtsControl
==
RTS_CONTROL_HANDSHAKE
)
{
{
...
@@ -956,7 +957,7 @@ static void test_LoopbackCtsRts(HANDLE hcom)
...
@@ -956,7 +957,7 @@ static void test_LoopbackCtsRts(HANDLE hcom)
static
void
test_LoopbackDtrDcd
(
HANDLE
hcom
)
static
void
test_LoopbackDtrDcd
(
HANDLE
hcom
)
{
{
DWORD
ModemStat
,
defaultStat
;
DWORD
ModemStat
=
0
,
defaultStat
=
0
;
DCB
dcb
;
DCB
dcb
;
ok
(
GetCommState
(
hcom
,
&
dcb
),
"GetCommState failed
\n
"
);
ok
(
GetCommState
(
hcom
,
&
dcb
),
"GetCommState failed
\n
"
);
...
@@ -995,7 +996,7 @@ static void test_LoopbackDtrDcd(HANDLE hcom)
...
@@ -995,7 +996,7 @@ static void test_LoopbackDtrDcd(HANDLE hcom)
static
void
test_LoopbackDtrDsr
(
HANDLE
hcom
)
static
void
test_LoopbackDtrDsr
(
HANDLE
hcom
)
{
{
DWORD
ModemStat
,
defaultStat
;
DWORD
ModemStat
=
0
,
defaultStat
=
0
;
DCB
dcb
;
DCB
dcb
;
ok
(
GetCommState
(
hcom
,
&
dcb
),
"GetCommState failed
\n
"
);
ok
(
GetCommState
(
hcom
,
&
dcb
),
"GetCommState failed
\n
"
);
...
@@ -1034,7 +1035,7 @@ static void test_LoopbackDtrDsr(HANDLE hcom)
...
@@ -1034,7 +1035,7 @@ static void test_LoopbackDtrDsr(HANDLE hcom)
static
void
test_LoopbackDtrRing
(
HANDLE
hcom
)
static
void
test_LoopbackDtrRing
(
HANDLE
hcom
)
{
{
DWORD
ModemStat
,
defaultStat
;
DWORD
ModemStat
=
0
,
defaultStat
=
0
;
DCB
dcb
;
DCB
dcb
;
ok
(
GetCommState
(
hcom
,
&
dcb
),
"GetCommState failed
\n
"
);
ok
(
GetCommState
(
hcom
,
&
dcb
),
"GetCommState failed
\n
"
);
...
@@ -1179,7 +1180,7 @@ static void test_WaitCts(HANDLE hcom)
...
@@ -1179,7 +1180,7 @@ static void test_WaitCts(HANDLE hcom)
OVERLAPPED
overlapped
;
OVERLAPPED
overlapped
;
HANDLE
hComPortEvent
;
HANDLE
hComPortEvent
;
HANDLE
alarmThread
;
HANDLE
alarmThread
;
DWORD
args
[
4
],
defaultStat
;
DWORD
args
[
4
],
defaultStat
=
0
;
DWORD
alarmThreadId
,
before
,
after
,
after1
,
diff
,
success
,
err
,
written
,
evtmask
=
0
;
DWORD
alarmThreadId
,
before
,
after
,
after1
,
diff
,
success
,
err
,
written
,
evtmask
=
0
;
ok
(
GetCommState
(
hcom
,
&
dcb
),
"GetCommState failed
\n
"
);
ok
(
GetCommState
(
hcom
,
&
dcb
),
"GetCommState failed
\n
"
);
...
@@ -1337,7 +1338,7 @@ static void test_WaitDsr(HANDLE hcom)
...
@@ -1337,7 +1338,7 @@ static void test_WaitDsr(HANDLE hcom)
OVERLAPPED
overlapped
;
OVERLAPPED
overlapped
;
HANDLE
hComPortEvent
;
HANDLE
hComPortEvent
;
HANDLE
alarmThread
;
HANDLE
alarmThread
;
DWORD
args
[
3
],
defaultStat
;
DWORD
args
[
3
],
defaultStat
=
0
;
DWORD
alarmThreadId
,
before
,
after
,
after1
,
diff
,
success
,
err
,
written
,
evtmask
=
0
;
DWORD
alarmThreadId
,
before
,
after
,
after1
,
diff
,
success
,
err
,
written
,
evtmask
=
0
;
ok
(
GetCommState
(
hcom
,
&
dcb
),
"GetCommState failed
\n
"
);
ok
(
GetCommState
(
hcom
,
&
dcb
),
"GetCommState failed
\n
"
);
...
@@ -1482,7 +1483,7 @@ static void test_WaitDcd(HANDLE hcom)
...
@@ -1482,7 +1483,7 @@ static void test_WaitDcd(HANDLE hcom)
OVERLAPPED
overlapped
;
OVERLAPPED
overlapped
;
HANDLE
hComPortEvent
;
HANDLE
hComPortEvent
;
HANDLE
alarmThread
;
HANDLE
alarmThread
;
DWORD
args
[
3
],
defaultStat
;
DWORD
args
[
3
],
defaultStat
=
0
;
DWORD
alarmThreadId
,
before
,
after
,
after1
,
diff
,
success
,
err
,
written
,
evtmask
=
0
;
DWORD
alarmThreadId
,
before
,
after
,
after1
,
diff
,
success
,
err
,
written
,
evtmask
=
0
;
ok
(
GetCommState
(
hcom
,
&
dcb
),
"GetCommState failed
\n
"
);
ok
(
GetCommState
(
hcom
,
&
dcb
),
"GetCommState failed
\n
"
);
...
...
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