dplayx: Fix semaphore deadlock.
authorAric Cyr <aric.cyr@gmail.com>
Fri, 3 Mar 2006 18:43:04 +0000 (03:43 +0900)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 15 Mar 2006 10:29:32 +0000 (11:29 +0100)
commit75fc82c965611d8f71f93131008771f2252d18fe
treefade4b34e723b5239a19f9509174b7987ce30d99
parentc04cbbfeae627cc20b55972df12f5dcc437ab10e
dplayx: Fix semaphore deadlock.

- Make sure to release the dplayx semaphore in for error cases as well.
- Prevent race condition between creation of the semaphore and
  grabbing of the lock by creating the semaphore in the locked state
  instead of unlocked.
dlls/dplayx/dplayx_global.c