[Wine-patches] [eter-2.1 1/2] Revert "ole32: Use a shortcut in DataCache_Save only if fSameAsLoad set to TRUE." (eterbug #11938)

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


This reverts commit 05ace9a3addce4347b8c981659bb7ce8b70341b6.
---
 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 e8553bf971..758e04e50d 100644
--- a/dlls/ole32/datacache.c
+++ b/dlls/ole32/datacache.c
@@ -1382,7 +1382,7 @@ static HRESULT WINAPI DataCache_Save(
     }
 
     /* this is a shortcut if nothing changed */
-    if (!dirty && fSameAsLoad && This->presentationStorage)
+    if (!dirty && !fSameAsLoad && This->presentationStorage)
     {
         return IStorage_CopyTo(This->presentationStorage, 0, NULL, NULL, pStg);
     }
-- 
2.14.2



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