Huw Davies : ole32: Check the cache entry' s stgmedium for the unloaded state.

Alexandre Julliard julliard at winehq.org
Tue May 23 18:01:27 CDT 2017


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

Author: Huw Davies <huw at codeweavers.com>
Date:   Tue May 23 13:11:39 2017 +0100

ole32: Check the cache entry's stgmedium for the unloaded state.

Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ole32/datacache.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/ole32/datacache.c b/dlls/ole32/datacache.c
index 40d4ab8..a50c4fe 100644
--- a/dlls/ole32/datacache.c
+++ b/dlls/ole32/datacache.c
@@ -929,7 +929,7 @@ static HRESULT DataCacheEntry_SetData(DataCacheEntry *cache_entry,
 
 static HRESULT DataCacheEntry_GetData(DataCacheEntry *cache_entry, STGMEDIUM *stgmedium)
 {
-    if (stgmedium->tymed == TYMED_NULL && cache_entry->stream)
+    if (cache_entry->stgmedium.tymed == TYMED_NULL && cache_entry->stream)
     {
         HRESULT hr = DataCacheEntry_LoadData(cache_entry);
         if (FAILED(hr))




More information about the wine-cvs mailing list