Author: mjmartin
Date: Sun Aug 29 17:46:18 2010
New Revision: 48646
URL:
http://svn.reactos.org/svn/reactos?rev=48646&view=rev
Log:
[cdfs]
- Working with Pierre Schweitzer for yet another NonPaged Pool corruption fix. When
copying VolumeLabel the VolumeLabelLength is in Unicode, so theres no need to mulitply it
by size of WCHAR.
Modified:
trunk/reactos/drivers/filesystems/cdfs/fsctl.c
Modified: trunk/reactos/drivers/filesystems/cdfs/fsctl.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/cdfs/f…
==============================================================================
--- trunk/reactos/drivers/filesystems/cdfs/fsctl.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/cdfs/fsctl.c [iso-8859-1] Sun Aug 29 17:46:18 2010
@@ -359,7 +359,7 @@
Vpb->SerialNumber = CdInfo.SerialNumber;
Vpb->VolumeLabelLength = CdInfo.VolumeLabelLength;
- RtlCopyMemory(Vpb->VolumeLabel, CdInfo.VolumeLabel, CdInfo.VolumeLabelLength *
sizeof(WCHAR));
+ RtlCopyMemory(Vpb->VolumeLabel, CdInfo.VolumeLabel, CdInfo.VolumeLabelLength);
RtlCopyMemory(&DeviceExt->CdInfo, &CdInfo, sizeof(CDINFO));
NewDeviceObject->Vpb = DeviceToMount->Vpb;