[PATCH 4/4] mmdevapi: Use device GUIDs as unique identifiers

Andrew Eikum aeikum at codeweavers.com
Tue Apr 3 13:48:12 CDT 2012


Before this change, applications which store their preferred devices by
GUID (including Wine itself) or by device name will lose their
preferences when devices are renamed at the driver level.

After this change, applications which store their preferred devices by
GUID will not lose their preferences when devices are renamed.
Applications which use the device name will still lose their
preferences, obviously.

Note that this change itself will cause applications that use the GUID
to lose their preferences as we would either have to break the
driver-mmdevapi barrier and/or pass legacy info up to mmdevapi to be
backwards compatible. This includes the winecfg preferred device
settings.
---
 dlls/mmdevapi/devenum.c                       |  104 +++++++++++--------------
 dlls/mmdevapi/mmdevapi.h                      |    5 +-
 dlls/winealsa.drv/mmdevdrv.c                  |   31 +++-----
 dlls/winealsa.drv/winealsa.drv.spec           |    2 +-
 dlls/winecoreaudio.drv/mmdevdrv.c             |   29 ++-----
 dlls/winecoreaudio.drv/winecoreaudio.drv.spec |    2 +-
 dlls/wineoss.drv/mmdevdrv.c                   |   25 ++----
 dlls/wineoss.drv/wineoss.drv.spec             |    2 +-
 8 files changed, 71 insertions(+), 129 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-mmdevapi-Use-device-GUIDs-as-unique-identifiers.patch
Type: text/x-patch
Size: 20905 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20120403/45f8527b/attachment.bin>


More information about the wine-patches mailing list