=?UTF-8?Q?Michael=20M=C3=BCller=20?=: quartz: Return increasing monitor GUID on VMR7 monitor enumeration.

Alexandre Julliard julliard at winehq.org
Thu Jan 2 13:13:48 CST 2014


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

Author: Michael Müller <michael at fds-team.de>
Date:   Tue Dec 31 03:23:19 2013 +0100

quartz: Return increasing monitor GUID on VMR7 monitor enumeration.

---

 dlls/quartz/vmr9.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/dlls/quartz/vmr9.c b/dlls/quartz/vmr9.c
index 31f3f8e..53e4942 100644
--- a/dlls/quartz/vmr9.c
+++ b/dlls/quartz/vmr9.c
@@ -1314,7 +1314,14 @@ static BOOL CALLBACK get_available_monitors_proc(HMONITOR hmon, HDC hdc, LPRECT
             VMRMONITORINFO *info = args->info7++;
             memset(info, 0, sizeof(*info));
 
-            info->guid.pGUID    = NULL; /* FIXME */
+            if (args->numdev > 0)
+            {
+                info->guid.pGUID = &info->guid.GUID;
+                info->guid.GUID.Data4[7] = args->numdev;
+            }
+            else
+                info->guid.pGUID = NULL;
+
             CopyRect(&info->rcMonitor, &mi.rcMonitor);
             info->hMon          = hmon;
             info->dwFlags       = mi.dwFlags;




More information about the wine-cvs mailing list