Patrick Rudolph : ddraw: Fill dwNumFourCCCodes in ddraw7_GetCaps.

Alexandre Julliard julliard at winehq.org
Fri Nov 15 13:14:29 CST 2013


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

Author: Patrick Rudolph <siro at das-labor.org>
Date:   Thu Nov 14 19:39:05 2013 +0100

ddraw: Fill dwNumFourCCCodes in ddraw7_GetCaps.

---

 dlls/ddraw/ddraw.c |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/dlls/ddraw/ddraw.c b/dlls/ddraw/ddraw.c
index d4b88ec..63dce96 100644
--- a/dlls/ddraw/ddraw.c
+++ b/dlls/ddraw/ddraw.c
@@ -1474,9 +1474,18 @@ static HRESULT WINAPI ddraw7_GetCaps(IDirectDraw7 *iface, DDCAPS *DriverCaps, DD
     }
 
     hr = IDirectDraw7_GetAvailableVidMem(iface, &ddscaps, &caps.dwVidMemTotal, &caps.dwVidMemFree);
-    wined3d_mutex_unlock();
-    if(FAILED(hr)) {
+    if (FAILED(hr))
+    {
         WARN("IDirectDraw7::GetAvailableVidMem failed\n");
+        wined3d_mutex_unlock();
+        return hr;
+    }
+
+    hr = IDirectDraw7_GetFourCCCodes(iface, &caps.dwNumFourCCCodes, NULL);
+    wined3d_mutex_unlock();
+    if (FAILED(hr))
+    {
+        WARN("IDirectDraw7::GetFourCCCodes failed\n");
         return hr;
     }
 




More information about the wine-cvs mailing list