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
58b1e2a4
Commit
58b1e2a4
authored
Jan 04, 2005
by
Lionel Ulmer
Committed by
Alexandre Julliard
Jan 04, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix 'SendAsyncCallback' when it's really asynchronous.
parent
cc89feb9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
internet.c
dlls/wininet/internet.c
+3
-0
utility.c
dlls/wininet/utility.c
+8
-1
No files found.
dlls/wininet/internet.c
View file @
58b1e2a4
...
...
@@ -2735,6 +2735,9 @@ static VOID INTERNET_ExecuteWork(void)
SendSyncCallback
(
workRequest
.
hdr
,
req
->
dwContext
,
req
->
dwInternetStatus
,
req
->
lpvStatusInfo
,
req
->
dwStatusInfoLength
);
/* And frees the copy of the status info */
HeapFree
(
GetProcessHeap
(),
0
,
req
->
lpvStatusInfo
);
}
break
;
...
...
dlls/wininet/utility.c
View file @
58b1e2a4
...
...
@@ -276,13 +276,20 @@ VOID SendAsyncCallback(LPWININETHANDLEHEADER hdr, DWORD dwContext,
{
WORKREQUEST
workRequest
;
struct
WORKREQ_SENDCALLBACK
*
req
;
void
*
lpvStatusInfo_copy
=
lpvStatusInfo
;
if
(
lpvStatusInfo
)
{
lpvStatusInfo_copy
=
HeapAlloc
(
GetProcessHeap
(),
0
,
dwStatusInfoLength
);
memcpy
(
lpvStatusInfo_copy
,
lpvStatusInfo
,
dwStatusInfoLength
);
}
workRequest
.
asyncall
=
SENDCALLBACK
;
workRequest
.
hdr
=
WININET_AddRef
(
hdr
);
req
=
&
workRequest
.
u
.
SendCallback
;
req
->
dwContext
=
dwContext
;
req
->
dwInternetStatus
=
dwInternetStatus
;
req
->
lpvStatusInfo
=
lpvStatusInfo
;
req
->
lpvStatusInfo
=
lpvStatusInfo
_copy
;
req
->
dwStatusInfoLength
=
dwStatusInfoLength
;
INTERNET_AsyncCall
(
&
workRequest
);
...
...
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