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
12df80a7
Commit
12df80a7
authored
Sep 23, 2004
by
Robert Shearman
Committed by
Alexandre Julliard
Sep 23, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Don't crash on double InternetCloseHandle.
- Test case for this.
parent
64d69b60
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
internet.c
dlls/wininet/internet.c
+2
-1
http.c
dlls/wininet/tests/http.c
+2
-0
No files found.
dlls/wininet/internet.c
View file @
12df80a7
...
...
@@ -192,7 +192,8 @@ LPWININETHANDLEHEADER WININET_GetObject( HINTERNET hinternet )
EnterCriticalSection
(
&
WININET_cs
);
if
(
(
handle
>
0
)
&&
(
handle
<=
WININET_dwMaxHandles
)
)
if
(
(
handle
>
0
)
&&
(
handle
<=
WININET_dwMaxHandles
)
&&
WININET_Handles
[
handle
-
1
]
)
info
=
WININET_AddRef
(
WININET_Handles
[
handle
-
1
]
);
LeaveCriticalSection
(
&
WININET_cs
);
...
...
dlls/wininet/tests/http.c
View file @
12df80a7
...
...
@@ -195,6 +195,8 @@ abort:
if
(
hor
!=
0x0
)
{
rc
=
InternetCloseHandle
(
hor
);
ok
((
rc
!=
0
),
"InternetCloseHandle of handle opened by HttpOpenRequestA failed
\n
"
);
rc
=
InternetCloseHandle
(
hor
);
ok
((
rc
==
0
),
"Double close of handle opened by HttpOpenRequestA succeeded
\n
"
);
}
if
(
hic
!=
0x0
)
{
rc
=
InternetCloseHandle
(
hic
);
...
...
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