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
ee1a4650
Commit
ee1a4650
authored
Sep 28, 2008
by
Hans Leidekker
Committed by
Alexandre Julliard
Sep 29, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Skip notifications that may arrive out of order.
parent
a14e9671
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
notification.c
dlls/winhttp/tests/notification.c
+6
-5
No files found.
dlls/winhttp/tests/notification.c
View file @
ee1a4650
...
@@ -45,6 +45,7 @@ struct notification
...
@@ -45,6 +45,7 @@ struct notification
enum
api
function
;
/* api responsible for notification */
enum
api
function
;
/* api responsible for notification */
unsigned
int
status
;
/* status received */
unsigned
int
status
;
/* status received */
int
todo
;
int
todo
;
int
ignore
;
};
};
struct
info
struct
info
...
@@ -73,12 +74,12 @@ static void CALLBACK check_notification( HINTERNET handle, DWORD_PTR context, DW
...
@@ -73,12 +74,12 @@ static void CALLBACK check_notification( HINTERNET handle, DWORD_PTR context, DW
status_ok
=
(
info
->
test
[
i
].
status
==
status
);
status_ok
=
(
info
->
test
[
i
].
status
==
status
);
function_ok
=
(
info
->
test
[
i
].
function
==
info
->
function
);
function_ok
=
(
info
->
test
[
i
].
function
==
info
->
function
);
if
(
!
info
->
test
[
i
].
todo
)
if
(
!
info
->
test
[
i
].
ignore
&&
!
info
->
test
[
i
].
todo
)
{
{
ok
(
status_ok
,
"%u: expected status 0x%08x got 0x%08x
\n
"
,
info
->
line
,
info
->
test
[
i
].
status
,
status
);
ok
(
status_ok
,
"%u: expected status 0x%08x got 0x%08x
\n
"
,
info
->
line
,
info
->
test
[
i
].
status
,
status
);
ok
(
function_ok
,
"%u: expected function %u got %u
\n
"
,
info
->
line
,
info
->
test
[
i
].
function
,
info
->
function
);
ok
(
function_ok
,
"%u: expected function %u got %u
\n
"
,
info
->
line
,
info
->
test
[
i
].
function
,
info
->
function
);
}
}
else
else
if
(
!
info
->
test
[
i
].
ignore
)
{
{
todo_wine
ok
(
status_ok
,
"%u: expected status 0x%08x got 0x%08x
\n
"
,
info
->
line
,
info
->
test
[
i
].
status
,
status
);
todo_wine
ok
(
status_ok
,
"%u: expected status 0x%08x got 0x%08x
\n
"
,
info
->
line
,
info
->
test
[
i
].
status
,
status
);
if
(
status_ok
)
if
(
status_ok
)
...
@@ -305,9 +306,9 @@ static const struct notification async_test[] =
...
@@ -305,9 +306,9 @@ static const struct notification async_test[] =
{
winhttp_receive_response
,
WINHTTP_CALLBACK_STATUS_RESPONSE_RECEIVED
,
0
},
{
winhttp_receive_response
,
WINHTTP_CALLBACK_STATUS_RESPONSE_RECEIVED
,
0
},
{
winhttp_receive_response
,
WINHTTP_CALLBACK_STATUS_HEADERS_AVAILABLE
,
0
},
{
winhttp_receive_response
,
WINHTTP_CALLBACK_STATUS_HEADERS_AVAILABLE
,
0
},
{
winhttp_query_data
,
WINHTTP_CALLBACK_STATUS_DATA_AVAILABLE
,
0
},
{
winhttp_query_data
,
WINHTTP_CALLBACK_STATUS_DATA_AVAILABLE
,
0
},
{
winhttp_read_data
,
WINHTTP_CALLBACK_STATUS_RECEIVING_RESPONSE
,
1
},
{
winhttp_read_data
,
WINHTTP_CALLBACK_STATUS_RECEIVING_RESPONSE
,
0
,
1
},
{
winhttp_read_data
,
WINHTTP_CALLBACK_STATUS_RESPONSE_RECEIVED
,
1
},
{
winhttp_read_data
,
WINHTTP_CALLBACK_STATUS_RESPONSE_RECEIVED
,
0
,
1
},
{
winhttp_read_data
,
WINHTTP_CALLBACK_STATUS_READ_COMPLETE
,
1
},
{
winhttp_read_data
,
WINHTTP_CALLBACK_STATUS_READ_COMPLETE
,
0
,
1
},
{
winhttp_close_handle
,
WINHTTP_CALLBACK_STATUS_CLOSING_CONNECTION
,
0
},
{
winhttp_close_handle
,
WINHTTP_CALLBACK_STATUS_CLOSING_CONNECTION
,
0
},
{
winhttp_close_handle
,
WINHTTP_CALLBACK_STATUS_CONNECTION_CLOSED
,
0
},
{
winhttp_close_handle
,
WINHTTP_CALLBACK_STATUS_CONNECTION_CLOSED
,
0
},
{
winhttp_close_handle
,
WINHTTP_CALLBACK_STATUS_HANDLE_CLOSING
,
0
},
{
winhttp_close_handle
,
WINHTTP_CALLBACK_STATUS_HANDLE_CLOSING
,
0
},
...
...
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