Ken Thomases : mountmgr: Balance volume references in add_volume().
Alexandre Julliard
julliard at winehq.org
Thu Apr 7 07:36:49 CDT 2011
Module: wine
Branch: stable
Commit: 33e5502034617e98a1db1c19e90597c740a7be3e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=33e5502034617e98a1db1c19e90597c740a7be3e
Author: Ken Thomases <ken at codeweavers.com>
Date: Mon Jan 31 17:07:16 2011 -0600
mountmgr: Balance volume references in add_volume().
(cherry picked from commit 8a38fbcacc5e4284038787296ea9ea57516a6004)
---
dlls/mountmgr.sys/device.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/dlls/mountmgr.sys/device.c b/dlls/mountmgr.sys/device.c
index 6c182e8..8709472 100644
--- a/dlls/mountmgr.sys/device.c
+++ b/dlls/mountmgr.sys/device.c
@@ -666,7 +666,11 @@ NTSTATUS add_volume( const char *udi, const char *device, const char *mount_poin
EnterCriticalSection( &device_section );
LIST_FOR_EACH_ENTRY( volume, &volumes_list, struct volume, entry )
- if (volume->udi && !strcmp( udi, volume->udi )) goto found;
+ if (volume->udi && !strcmp( udi, volume->udi ))
+ {
+ grab_volume( volume );
+ goto found;
+ }
/* udi not found, search for a non-dynamic volume */
if ((volume = find_matching_volume( udi, device, mount_point, type ))) set_volume_udi( volume, udi );
More information about the wine-cvs
mailing list