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
b084d7a4
Commit
b084d7a4
authored
Aug 31, 2013
by
Marcus Meissner
Committed by
Alexandre Julliard
Sep 02, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Avoid leaving com handle open (Coverity).
parent
75511e35
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
comm.c
dlls/kernel32/tests/comm.c
+4
-2
No files found.
dlls/kernel32/tests/comm.c
View file @
b084d7a4
...
@@ -1036,7 +1036,7 @@ static void test_LoopbackCtsRts(void)
...
@@ -1036,7 +1036,7 @@ static void test_LoopbackCtsRts(void)
if
(
dcb
.
fRtsControl
==
RTS_CONTROL_HANDSHAKE
)
if
(
dcb
.
fRtsControl
==
RTS_CONTROL_HANDSHAKE
)
{
{
trace
(
"RTS_CONTROL_HANDSHAKE is set, so don't manipulate RTS
\n
"
);
trace
(
"RTS_CONTROL_HANDSHAKE is set, so don't manipulate RTS
\n
"
);
CloseHandle
(
hcom
);
CloseHandle
(
hcom
);
return
;
return
;
}
}
ok
(
GetCommModemStatus
(
hcom
,
&
defaultStat
),
"GetCommModemStatus failed
\n
"
);
ok
(
GetCommModemStatus
(
hcom
,
&
defaultStat
),
"GetCommModemStatus failed
\n
"
);
...
@@ -1180,6 +1180,7 @@ static void test_LoopbackDtrRing(void)
...
@@ -1180,6 +1180,7 @@ static void test_LoopbackDtrRing(void)
if
(
dcb
.
fDtrControl
==
DTR_CONTROL_HANDSHAKE
)
if
(
dcb
.
fDtrControl
==
DTR_CONTROL_HANDSHAKE
)
{
{
trace
(
"DTR_CONTROL_HANDSHAKE is set, so don't manipulate DTR
\n
"
);
trace
(
"DTR_CONTROL_HANDSHAKE is set, so don't manipulate DTR
\n
"
);
CloseHandle
(
hcom
);
return
;
return
;
}
}
ok
(
GetCommModemStatus
(
hcom
,
&
defaultStat
),
"GetCommModemStatus failed
\n
"
);
ok
(
GetCommModemStatus
(
hcom
,
&
defaultStat
),
"GetCommModemStatus failed
\n
"
);
...
@@ -1592,6 +1593,7 @@ static void test_WaitRing(void)
...
@@ -1592,6 +1593,7 @@ static void test_WaitRing(void)
ok
((
ret
=
GetCommModemStatus
(
hcom
,
&
defaultStat
)),
"GetCommModemStatus failed
\n
"
);
ok
((
ret
=
GetCommModemStatus
(
hcom
,
&
defaultStat
)),
"GetCommModemStatus failed
\n
"
);
if
(
!
ret
)
{
if
(
!
ret
)
{
skip
(
"modem status failed -> skip.
\n
"
);
skip
(
"modem status failed -> skip.
\n
"
);
CloseHandle
(
hcom
);
return
;
return
;
}
}
if
(
defaultStat
&
MS_RING_ON
)
if
(
defaultStat
&
MS_RING_ON
)
...
@@ -1668,7 +1670,7 @@ static void test_WaitDcd(void)
...
@@ -1668,7 +1670,7 @@ static void test_WaitDcd(void)
if
(
dcb
.
fDtrControl
==
DTR_CONTROL_DISABLE
)
if
(
dcb
.
fDtrControl
==
DTR_CONTROL_DISABLE
)
{
{
trace
(
"DTR_CONTROL_HANDSHAKE is set, so don't manipulate DTR
\n
"
);
trace
(
"DTR_CONTROL_HANDSHAKE is set, so don't manipulate DTR
\n
"
);
CloseHandle
(
hcom
);
CloseHandle
(
hcom
);
return
;
return
;
}
}
args
[
0
]
=
TIMEOUT
>>
1
;
args
[
0
]
=
TIMEOUT
>>
1
;
...
...
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