* pthread.cc (pthread_mutex::_unlock): Avoid unlocking a mutex if the

recursion_counter is already 0.
(pthread_mutex::_destroy): Don't consider a mutex busy if its recursion_counter
== 0.
(pthread_mutex::_fixup_after_fork): Set recursion_counter to 0 to flag that
we've just forked.  Don't reset the owner of this mutex since the forkee may
think it still owns the mutex.  Reinstate initialization of win32_obj_id.
* fhandler_floppy.cc (fhandler_dev_floppy::raw_read): Initialize a variable to
bypass a C++ warning.
This commit is contained in:
Christopher Faylor
2008-11-07 18:32:41 +00:00
parent 5dd0d5828f
commit dc74da050c
3 changed files with 28 additions and 11 deletions

View File

@@ -245,7 +245,7 @@ fhandler_dev_floppy::raw_read (void *ptr, size_t& ulen)
{
DWORD bytes_read = 0;
DWORD read2;
DWORD bytes_to_read;
DWORD bytes_to_read = 0;
int ret;
size_t len = ulen;
char *tgt;