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
33e522ee
Commit
33e522ee
authored
Feb 17, 2010
by
Hans Leidekker
Committed by
Alexandre Julliard
Feb 17, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp/tests: Wait for a handle closing notification.
Fixes a Valgrind warning.
parent
7b660bb3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
notification.c
dlls/winhttp/tests/notification.c
+6
-1
No files found.
dlls/winhttp/tests/notification.c
View file @
33e522ee
...
...
@@ -88,7 +88,10 @@ static void CALLBACK check_notification( HINTERNET handle, DWORD_PTR context, DW
}
}
if
(
status_ok
)
info
->
index
++
;
if
(
status
&
WINHTTP_CALLBACK_FLAG_ALL_COMPLETIONS
)
SetEvent
(
info
->
wait
);
if
(
status
&
(
WINHTTP_CALLBACK_FLAG_ALL_COMPLETIONS
|
WINHTTP_CALLBACK_STATUS_HANDLE_CLOSING
))
{
SetEvent
(
info
->
wait
);
}
}
static
const
struct
notification
cache_test
[]
=
...
...
@@ -380,6 +383,8 @@ static void test_async( void )
WinHttpCloseHandle
(
req
);
WinHttpCloseHandle
(
con
);
WinHttpCloseHandle
(
ses
);
WaitForSingleObject
(
info
.
wait
,
INFINITE
);
CloseHandle
(
info
.
wait
);
}
...
...
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