From bb7604cbf17a0e6aace0b621e8a8a62a7edc6bd1 Mon Sep 17 00:00:00 2001 From: Daniel Lehman Date: Fri, 4 May 2018 14:38:50 -0700 Subject: [PATCH] crypt32: Clear dirty flag after flushing changes to registry. Signed-off-by: Daniel Lehman --- dlls/crypt32/regstore.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/crypt32/regstore.c b/dlls/crypt32/regstore.c index 9b81e01577..7678bab6aa 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; -- 2.17.0