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
e30037f0
Commit
e30037f0
authored
Dec 25, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 26, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Use proc instead of enum in SENDCALLBACK request.
parent
bf250285
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
17 deletions
+20
-17
internet.c
dlls/wininet/internet.c
+4
-15
internet.h
dlls/wininet/internet.h
+2
-1
utility.c
dlls/wininet/utility.c
+14
-1
No files found.
dlls/wininet/internet.c
View file @
e30037f0
...
...
@@ -3213,6 +3213,10 @@ static VOID INTERNET_ExecuteWork(void)
switch
(
workRequest
.
asyncall
)
{
case
CALLASYNCPROC
:
workRequest
.
asyncproc
(
&
workRequest
);
break
;
case
FTPPUTFILEW
:
{
struct
WORKREQ_FTPPUTFILEW
*
req
=
&
workRequest
.
u
.
FtpPutFileW
;
...
...
@@ -3392,21 +3396,6 @@ static VOID INTERNET_ExecuteWork(void)
}
break
;
case
SENDCALLBACK
:
{
struct
WORKREQ_SENDCALLBACK
*
req
=
&
workRequest
.
u
.
SendCallback
;
TRACE
(
"SENDCALLBACK %p
\n
"
,
workRequest
.
hdr
);
INTERNET_SendCallback
(
workRequest
.
hdr
,
req
->
dwContext
,
req
->
dwInternetStatus
,
req
->
lpvStatusInfo
,
req
->
dwStatusInfoLength
);
/* And frees the copy of the status info */
HeapFree
(
GetProcessHeap
(),
0
,
req
->
lpvStatusInfo
);
}
break
;
case
INTERNETOPENURLW
:
{
struct
WORKREQ_INTERNETOPENURLW
*
req
=
&
workRequest
.
u
.
InternetOpenUrlW
;
...
...
dlls/wininet/internet.h
View file @
e30037f0
...
...
@@ -249,6 +249,7 @@ typedef struct
typedef
enum
{
CALLASYNCPROC
,
FTPPUTFILEW
,
FTPSETCURRENTDIRECTORYW
,
FTPCREATEDIRECTORYW
,
...
...
@@ -262,7 +263,6 @@ typedef enum
FTPFINDNEXTW
,
HTTPSENDREQUESTW
,
HTTPOPENREQUESTW
,
SENDCALLBACK
,
INTERNETOPENURLW
,
INTERNETREADFILEEXA
,
}
ASYNC_FUNC
;
...
...
@@ -385,6 +385,7 @@ struct WORKREQ_INTERNETREADFILEEXA
typedef
struct
WORKREQ
{
ASYNC_FUNC
asyncall
;
void
(
*
asyncproc
)(
struct
WORKREQ
*
);
WININETHANDLEHEADER
*
hdr
;
union
{
...
...
dlls/wininet/utility.c
View file @
e30037f0
...
...
@@ -254,7 +254,19 @@ VOID INTERNET_SendCallback(LPWININETHANDLEHEADER hdr, DWORD dwContext,
HeapFree
(
GetProcessHeap
(),
0
,
lpvNewInfo
);
}
static
void
SendAsyncCallbackProc
(
WORKREQUEST
*
workRequest
)
{
struct
WORKREQ_SENDCALLBACK
const
*
req
=
&
workRequest
->
u
.
SendCallback
;
TRACE
(
"%p
\n
"
,
workRequest
->
hdr
);
INTERNET_SendCallback
(
workRequest
->
hdr
,
req
->
dwContext
,
req
->
dwInternetStatus
,
req
->
lpvStatusInfo
,
req
->
dwStatusInfoLength
);
/* And frees the copy of the status info */
HeapFree
(
GetProcessHeap
(),
0
,
req
->
lpvStatusInfo
);
}
VOID
SendAsyncCallback
(
LPWININETHANDLEHEADER
hdr
,
DWORD
dwContext
,
DWORD
dwInternetStatus
,
LPVOID
lpvStatusInfo
,
...
...
@@ -281,7 +293,8 @@ VOID SendAsyncCallback(LPWININETHANDLEHEADER hdr, DWORD dwContext,
memcpy
(
lpvStatusInfo_copy
,
lpvStatusInfo
,
dwStatusInfoLength
);
}
workRequest
.
asyncall
=
SENDCALLBACK
;
workRequest
.
asyncall
=
CALLASYNCPROC
;
workRequest
.
asyncproc
=
SendAsyncCallbackProc
;
workRequest
.
hdr
=
WININET_AddRef
(
hdr
);
req
=
&
workRequest
.
u
.
SendCallback
;
req
->
dwContext
=
dwContext
;
...
...
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