[Wine-patches] [eter-2.1] ole32: Use a shortcut in DataCache_Save only if fSameAsLoad set to TRUE.

Dmitry Timoshkov dtimoshkov на etersoft.ru
Ср Сен 20 16:42:56 MSK 2017


---
 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 758e04e50d..e8553bf971 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.1



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