[Wine-patches] [eter-2.1 2/2] ole32: Remove an optimization from DataCache_Save() that copies whole original storage. (eterbug #11938)

Dmitry Timoshkov dtimoshkov на etersoft.ru
Чт Окт 19 05:02:11 MSK 2017


---
 dlls/ole32/datacache.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/dlls/ole32/datacache.c b/dlls/ole32/datacache.c
index 758e04e50d..d76aa04133 100644
--- a/dlls/ole32/datacache.c
+++ b/dlls/ole32/datacache.c
@@ -1381,12 +1381,6 @@ static HRESULT WINAPI DataCache_Save(
         }
     }
 
-    /* this is a shortcut if nothing changed */
-    if (!dirty && !fSameAsLoad && This->presentationStorage)
-    {
-        return IStorage_CopyTo(This->presentationStorage, 0, NULL, NULL, pStg);
-    }
-
     /* assign stream numbers to the cache entries */
     LIST_FOR_EACH_ENTRY(cache_entry, &This->cache_list, DataCacheEntry, entry)
     {
-- 
2.14.2



Подробная информация о списке рассылки Wine-patches