urlmon: Fix race in protocol tests.
authorRob Shearman <robertshearman@gmail.com>
Sun, 28 Sep 2008 15:38:05 +0000 (16:38 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 29 Sep 2008 22:23:11 +0000 (17:23 -0500)
commit601b3b2732eb9da816c7805c594376ad8f7d0bdd
treefdaef565fd59bbb547eece428572e5e2326bd3ef
parent4730205ffbf4ee53dcb5d04db85aec726778024e
urlmon: Fix race in protocol tests.

The value of *called is set asynchronously and so the callback
function could be called after IInternetProtocol_Read returns
E_PENDING. The value of *called is only predictable after the
WaitForSingleObject call returns. Therefore, remove the checks on
*called before this call.
dlls/urlmon/tests/protocol.c