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
705b01c0
Commit
705b01c0
authored
Sep 21, 2007
by
Misha Koshelev
Committed by
Alexandre Julliard
Sep 25, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: When sending INTERNET_STATUS_HANDLE_CLOSING make sure the freed handle…
wininet: When sending INTERNET_STATUS_HANDLE_CLOSING make sure the freed handle is not yet available.
parent
665a8add
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
internet.c
dlls/wininet/internet.c
+11
-3
No files found.
dlls/wininet/internet.c
View file @
705b01c0
...
...
@@ -208,13 +208,14 @@ BOOL WININET_FreeHandle( HINTERNET hinternet )
TRACE
(
"destroying handle %d for object %p
\n
"
,
handle
+
1
,
info
);
WININET_Handles
[
handle
]
=
NULL
;
ret
=
TRUE
;
if
(
WININET_dwNextHandle
>
handle
)
WININET_dwNextHandle
=
handle
;
}
}
LeaveCriticalSection
(
&
WININET_cs
);
/* As on native when the equivalent of WININET_Release is called, the handle
* is already invalid, but if a new handle is created at this time it does
* not yet get assigned the freed handle number */
if
(
info
)
{
/* Free all children as native does */
...
...
@@ -227,6 +228,13 @@ BOOL WININET_FreeHandle( HINTERNET hinternet )
WININET_Release
(
info
);
}
EnterCriticalSection
(
&
WININET_cs
);
if
(
WININET_dwNextHandle
>
handle
&&
!
WININET_Handles
[
handle
]
)
WININET_dwNextHandle
=
handle
;
LeaveCriticalSection
(
&
WININET_cs
);
return
ret
;
}
...
...
@@ -1006,8 +1014,8 @@ BOOL WINAPI InternetCloseHandle(HINTERNET hInternet)
return
FALSE
;
}
WININET_FreeHandle
(
hInternet
);
WININET_Release
(
lpwh
);
WININET_FreeHandle
(
hInternet
);
return
TRUE
;
}
...
...
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