From 91c232dad239d8e44ab1280fd40f785093fd6232 Mon Sep 17 00:00:00 2001 From: henrypp Date: Thu, 20 Jul 2023 01:42:37 +0600 Subject: [PATCH] cosmetics --- src/db.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/db.c b/src/db.c index 7b4cc78a..9986d533 100644 --- a/src/db.c +++ b/src/db.c @@ -933,10 +933,11 @@ NTSTATUS _app_db_save_streamtofile ( status = _app_db_encodebody (db_info, profile_type, &new_bytes); if (NT_SUCCESS (status)) + { WriteFile (hfile, new_bytes->buffer, (ULONG)new_bytes->length, &unused, NULL); - if (new_bytes) _r_obj_dereference (new_bytes); + } NtClose (hfile);