Module: wine Branch: master Commit: e6f6e7ebda48ec7ddf2f82c11e5a8be098340f58 URL: https://source.winehq.org/git/wine.git/?a=commit;h=e6f6e7ebda48ec7ddf2f82c11...
Author: Daniel Lehman dlehman@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@esri.com Signed-off-by: Alexandre Julliard julliard@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;