Alexandre Julliard : mountmgr: Rename the DOS drive mount field for symmetry with the volume structure.

Alexandre Julliard julliard at winehq.org
Thu Jul 23 09:59:10 CDT 2009


Module: wine
Branch: master
Commit: 86fdd8ebc54afdd8683550eca08287944db12599
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=86fdd8ebc54afdd8683550eca08287944db12599

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Jul 22 17:46:02 2009 +0200

mountmgr: Rename the DOS drive mount field for symmetry with the volume structure.

---

 dlls/mountmgr.sys/device.c |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/dlls/mountmgr.sys/device.c b/dlls/mountmgr.sys/device.c
index efbbb33..7b235ec 100644
--- a/dlls/mountmgr.sys/device.c
+++ b/dlls/mountmgr.sys/device.c
@@ -80,7 +80,7 @@ struct dos_drive
     struct list           entry;       /* entry in drives list */
     struct volume        *volume;      /* volume for this drive */
     int                   drive;       /* drive letter (0 = A: etc.) */
-    struct mount_point   *dosdev;      /* DosDevices mount point */
+    struct mount_point   *mount;       /* DosDevices mount point */
 };
 
 static struct list drives_list = LIST_INIT(drives_list);
@@ -329,8 +329,8 @@ static NTSTATUS create_dos_device( const char *udi, enum device_type type, struc
     NTSTATUS status;
 
     if (!(drive = RtlAllocateHeap( GetProcessHeap(), 0, sizeof(*drive) ))) return STATUS_NO_MEMORY;
-    drive->drive  = -1;
-    drive->dosdev = NULL;
+    drive->drive = -1;
+    drive->mount = NULL;
 
     if (!(status = create_volume( udi, type, &drive->volume )))
     {
@@ -346,7 +346,7 @@ static NTSTATUS create_dos_device( const char *udi, enum device_type type, struc
 static void delete_dos_device( struct dos_drive *drive )
 {
     list_remove( &drive->entry );
-    if (drive->dosdev) delete_mount_point( drive->dosdev );
+    if (drive->mount) delete_mount_point( drive->mount );
     delete_volume( drive->volume );
     RtlFreeHeap( GetProcessHeap(), 0, drive );
 }
@@ -414,17 +414,17 @@ static void set_drive_letter( struct dos_drive *drive, int letter )
     struct disk_device *device = volume->device;
 
     if (drive->drive == letter) return;
-    if (drive->dosdev) delete_mount_point( drive->dosdev );
+    if (drive->mount) delete_mount_point( drive->mount );
     if (volume->mount) delete_mount_point( volume->mount );
     drive->drive = letter;
-    drive->dosdev = add_dosdev_mount_point( device->dev_obj, &device->name, letter );
+    drive->mount = add_dosdev_mount_point( device->dev_obj, &device->name, letter );
     volume->mount = add_volume_mount_point( device->dev_obj, &device->name, &volume->guid );
     if (device->unix_mount)
     {
         id = device->unix_mount;
         id_len = strlen( device->unix_mount ) + 1;
     }
-    if (drive->dosdev) set_mount_point_id( drive->dosdev, id, id_len );
+    if (drive->mount) set_mount_point_id( drive->mount, id, id_len );
     if (volume->mount) set_mount_point_id( volume->mount, id, id_len );
 }
 
@@ -534,7 +534,7 @@ static BOOL set_unix_mount_point( struct dos_drive *drive, const char *mount_poi
         }
         RtlFreeHeap( GetProcessHeap(), 0, device->unix_mount );
         device->unix_mount = strdupA( mount_point );
-        if (drive->dosdev) set_mount_point_id( drive->dosdev, mount_point, strlen(mount_point) + 1 );
+        if (drive->mount) set_mount_point_id( drive->mount, mount_point, strlen(mount_point) + 1 );
         if (volume->mount) set_mount_point_id( volume->mount, mount_point, strlen(mount_point) + 1 );
     }
     else
@@ -542,7 +542,7 @@ static BOOL set_unix_mount_point( struct dos_drive *drive, const char *mount_poi
         if (unlink( path ) != -1) modified = TRUE;
         RtlFreeHeap( GetProcessHeap(), 0, device->unix_mount );
         device->unix_mount = NULL;
-        if (drive->dosdev) set_mount_point_id( drive->dosdev, NULL, 0 );
+        if (drive->mount) set_mount_point_id( drive->mount, NULL, 0 );
         if (volume->mount) set_mount_point_id( volume->mount, NULL, 0 );
     }
 




More information about the wine-cvs mailing list