diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/registry/reg_backend_db.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c index 8dfb59a43f..3e2502e4f8 100644 --- a/source3/registry/reg_backend_db.c +++ b/source3/registry/reg_backend_db.c @@ -185,7 +185,7 @@ fail: */ bool init_registry_key(const char *add_path) { - if (regdb->transaction_start(regdb) == -1) { + if (regdb->transaction_start(regdb) != 0) { DEBUG(0, ("init_registry_key: transaction_start failed\n")); return false; } @@ -228,7 +228,7 @@ bool init_registry_data(void) * transaction behaviour. */ - if (regdb->transaction_start(regdb) == -1) { + if (regdb->transaction_start(regdb) != 0) { DEBUG(0, ("init_registry_data: tdb_transaction_start " "failed\n")); return false; @@ -552,7 +552,7 @@ bool regdb_store_keys(const char *key, REGSUBKEY_CTR *ctr) TALLOC_FREE(old_subkeys); - if (regdb->transaction_start(regdb) == -1) { + if (regdb->transaction_start(regdb) != 0) { DEBUG(0, ("regdb_store_keys: transaction_start failed\n")); goto fail; } |