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
dece43d8
Commit
dece43d8
authored
Nov 22, 2005
by
Robert Shearman
Committed by
Alexandre Julliard
Nov 22, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test the sizes of some of the parameters passed into the callback.
parent
756f1979
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
http.c
dlls/wininet/tests/http.c
+15
-0
No files found.
dlls/wininet/tests/http.c
View file @
dece43d8
...
...
@@ -85,6 +85,9 @@ static VOID WINAPI callback(
lpvStatusInformation
,
dwStatusInformationLength
);
break
;
case
INTERNET_STATUS_REQUEST_SENT
:
ok
(
dwStatusInformationLength
==
sizeof
(
DWORD
),
"info length should be sizeof(DWORD) instead of %ld
\n
"
,
dwStatusInformationLength
);
trace
(
"%04lx:Callback %p 0x%lx INTERNET_STATUS_REQUEST_SENT 0x%lx %ld
\n
"
,
GetCurrentThreadId
(),
hInternet
,
dwContext
,
*
(
DWORD
*
)
lpvStatusInformation
,
dwStatusInformationLength
);
...
...
@@ -95,6 +98,9 @@ static VOID WINAPI callback(
lpvStatusInformation
,
dwStatusInformationLength
);
break
;
case
INTERNET_STATUS_RESPONSE_RECEIVED
:
ok
(
dwStatusInformationLength
==
sizeof
(
DWORD
),
"info length should be sizeof(DWORD) instead of %ld
\n
"
,
dwStatusInformationLength
);
trace
(
"%04lx:Callback %p 0x%lx INTERNET_STATUS_RESPONSE_RECEIVED 0x%lx %ld
\n
"
,
GetCurrentThreadId
(),
hInternet
,
dwContext
,
*
(
DWORD
*
)
lpvStatusInformation
,
dwStatusInformationLength
);
...
...
@@ -120,11 +126,17 @@ static VOID WINAPI callback(
lpvStatusInformation
,
dwStatusInformationLength
);
break
;
case
INTERNET_STATUS_HANDLE_CREATED
:
ok
(
dwStatusInformationLength
==
sizeof
(
HINTERNET
),
"info length should be sizeof(HINTERNET) instead of %ld
\n
"
,
dwStatusInformationLength
);
trace
(
"%04lx:Callback %p 0x%lx INTERNET_STATUS_HANDLE_CREATED %p %ld
\n
"
,
GetCurrentThreadId
(),
hInternet
,
dwContext
,
*
(
HINTERNET
*
)
lpvStatusInformation
,
dwStatusInformationLength
);
break
;
case
INTERNET_STATUS_HANDLE_CLOSING
:
ok
(
dwStatusInformationLength
==
sizeof
(
HINTERNET
),
"info length should be sizeof(HINTERNET) instead of %ld
\n
"
,
dwStatusInformationLength
);
trace
(
"%04lx:Callback %p 0x%lx INTERNET_STATUS_HANDLE_CLOSING %p %ld
\n
"
,
GetCurrentThreadId
(),
hInternet
,
dwContext
,
*
(
HINTERNET
*
)
lpvStatusInformation
,
dwStatusInformationLength
);
...
...
@@ -132,6 +144,9 @@ static VOID WINAPI callback(
case
INTERNET_STATUS_REQUEST_COMPLETE
:
{
INTERNET_ASYNC_RESULT
*
iar
=
(
INTERNET_ASYNC_RESULT
*
)
lpvStatusInformation
;
ok
(
dwStatusInformationLength
==
sizeof
(
INTERNET_ASYNC_RESULT
),
"info length should be sizeof(INTERNET_ASYNC_RESULT) instead of %ld
\n
"
,
dwStatusInformationLength
);
trace
(
"%04lx:Callback %p 0x%lx INTERNET_STATUS_REQUEST_COMPLETE {%ld,%ld} %ld
\n
"
,
GetCurrentThreadId
(),
hInternet
,
dwContext
,
iar
->
dwResult
,
iar
->
dwError
,
dwStatusInformationLength
);
...
...
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