[3/3] ole32: Use a shortcut in DataCache_Save only if fSameAsLoad set to TRUE.

Dmitry Timoshkov dmitry at baikal.ru
Wed Sep 20 06:54:21 CDT 2017


This looks like a typo, and this patch makes saving data in a pretty complex
application work.

Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
---
 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 4e684b4189..c3383176f8 100644
--- a/dlls/ole32/datacache.c
+++ b/dlls/ole32/datacache.c
@@ -1663,7 +1663,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




More information about the wine-patches mailing list