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>
This commit is contained in:
Daniel Lehman 2018-05-04 14:38:50 -07:00 committed by Alexandre Julliard
parent 1353d02904
commit e6f6e7ebda
1 changed files with 4 additions and 0 deletions

View File

@ -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;