* fhandler.h (class fhandler_dev_mem): Remove dup method declaration.

* fhandler_clipboard.cc (fhandler_dev_clipboard::dup): Accommodate the
	fact that the entire fhandler gets copied over to the child in
	operator =.
	* fhandler_floppy.cc (fhandler_dev_floppy::dup): Ditto.
	* fhandler_raw.cc (fhandler_dev_raw::dup): Ditto.
	* fhandler_serial.cc (fhandler_serial::dup): Ditto.
	* fhandler_socket.cc (fhandler_socket::dup): Ditto.
	* fhandler_virtual.cc (fhandler_virtual::dup): Ditto.
	* fhandler_mem.cc (fhandler_dev_mem::dup): Ditto.  Remove entirely.
This commit is contained in:
Corinna Vinschen
2011-07-31 12:37:52 +00:00
parent 6c6fe41781
commit c114604529
9 changed files with 18 additions and 60 deletions

View File

@@ -407,21 +407,10 @@ fhandler_dev_floppy::close ()
int
fhandler_dev_floppy::dup (fhandler_base *child)
{
fhandler_dev_floppy *fhc = (fhandler_dev_floppy *) child;
int ret = fhandler_dev_raw::dup (child);
if (!ret)
{
fhc->drive_size = drive_size;
fhc->bytes_per_sector = bytes_per_sector;
if (partitions)
{
InterlockedIncrement (&partitions->refcnt);
fhc->partitions = partitions;
}
fhc->eom_detected (eom_detected ());
}
if (!ret && partitions)
InterlockedIncrement (&partitions->refcnt);
return ret;
}