Daniel Lehman : crypt32: Clear dirty flag after flushing changes to registry.

Alexandre Julliard julliard at winehq.org
Mon May 7 16:34:41 CDT 2018


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

Author: Daniel Lehman <dlehman at esri.com>
Date:   Fri May  4 14:38:50 2018 -0700

crypt32: Clear dirty flag after flushing changes to registry.

Signed-off-by: Daniel Lehman <dlehman at esri.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/crypt32/regstore.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dlls/crypt32/regstore.c b/dlls/crypt32/regstore.c
index 9b81e01..7678bab 100644
--- a/dlls/crypt32/regstore.c
+++ b/dlls/crypt32/regstore.c
@@ -309,7 +309,11 @@ static BOOL CRYPT_RegFlushStore(WINE_REGSTOREINFO *store, BOOL force)
     TRACE("(%p, %d)\n", store, force);
 
     if (store->dirty || force)
+    {
         ret = CRYPT_RegWriteToReg(store);
+        if (ret)
+            store->dirty = FALSE;
+    }
     else
         ret = TRUE;
     return ret;




More information about the wine-cvs mailing list