diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2020-06-26 01:07:44 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2020-06-26 01:21:54 +0200 |
commit | 9a890ec2fc10e5bef4e2d3b9800186ec1673cde1 (patch) | |
tree | 559490a0d0f7e16c052ae10302ab439cda7f6aad /src/Common/Dlgcode.h | |
parent | 7d1724e93b17c5095bb01c9f053600b3a85c3cdc (diff) | |
download | VeraCrypt-9a890ec2fc10e5bef4e2d3b9800186ec1673cde1.tar.gz VeraCrypt-9a890ec2fc10e5bef4e2d3b9800186ec1673cde1.zip |
Windows: fix warning reported by static code analyzed by adding copy constructor to _TEXT_EDIT_DIALOG_PARAM and = operator to HostDevice
Diffstat (limited to 'src/Common/Dlgcode.h')
-rw-r--r-- | src/Common/Dlgcode.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/Common/Dlgcode.h b/src/Common/Dlgcode.h index b2324b12..29a13624 100644 --- a/src/Common/Dlgcode.h +++ b/src/Common/Dlgcode.h @@ -601,6 +601,30 @@ struct HostDevice ~HostDevice () {} + HostDevice& operator= (const HostDevice& device) + { + if (this != &device) + { + Bootable = device.Bootable; + ContainsSystem = device.ContainsSystem; + DynamicVolume = device.DynamicVolume; + Floppy = device.Floppy; + IsPartition = device.IsPartition; + IsVirtualPartition = device.IsVirtualPartition; + HasUnencryptedFilesystem = device.HasUnencryptedFilesystem; + MountPoint = device.MountPoint; + Name = device.Name; + Path = device.Path; + Removable = device.Removable; + Size = device.Size; + SystemNumber = device.SystemNumber; + HasVolumeIDs = device.HasVolumeIDs; + Partitions = device.Partitions; + memcpy (VolumeIDs, device.VolumeIDs, sizeof (VolumeIDs)); + } + return *this; + } + bool Bootable; bool ContainsSystem; bool DynamicVolume; |