Skip to content

Commit 1f37f7c

Browse files
committed
code cosmetics
1 parent d5902dd commit 1f37f7c

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

src/db.c

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,15 @@
33

44
#include "global.h"
55

6-
_Success_ (NT_SUCCESS (return))
7-
NTSTATUS _app_db_initialize (
6+
_Success_ (SUCCEEDED (return))
7+
HRESULT _app_db_initialize (
88
_Out_ PDB_INFORMATION db_info,
99
_In_ BOOLEAN is_reader
1010
)
1111
{
12-
NTSTATUS status;
13-
1412
RtlZeroMemory (db_info, sizeof (DB_INFORMATION));
1513

16-
status = _r_xml_initializelibrary (&db_info->xml_library, is_reader);
17-
18-
return status;
14+
return _r_xml_initializelibrary (&db_info->xml_library, is_reader);
1915
}
2016

2117
VOID _app_db_destroy (

src/db.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ static const BYTE profile2_fourcc_old[] = {
6868
#define PROFILE2_SHA256_LENGTH 32UL
6969
#define PROFILE2_HEADER_LENGTH (PROFILE2_FOURCC_LENGTH + PROFILE2_SHA256_LENGTH)
7070

71-
_Success_ (NT_SUCCESS (return))
72-
NTSTATUS _app_db_initialize (
71+
_Success_ (SUCCEEDED (return))
72+
HRESULT _app_db_initialize (
7373
_Out_ PDB_INFORMATION db_info,
7474
_In_ BOOLEAN is_reader
7575
);

src/profile.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1709,8 +1709,8 @@ NTSTATUS _app_profile_load (
17091709
)
17101710
{
17111711
DB_INFORMATION db_info;
1712-
NTSTATUS status;
17131712
BOOLEAN is_update;
1713+
NTSTATUS status;
17141714

17151715
status = _app_db_initialize (&db_info, TRUE);
17161716

@@ -1790,8 +1790,8 @@ NTSTATUS _app_profile_save (
17901790
{
17911791
DB_INFORMATION db_info;
17921792
LONG64 timestamp;
1793-
NTSTATUS status;
17941793
BOOLEAN is_backuprequired = FALSE;
1794+
NTSTATUS status;
17951795

17961796
status = _app_db_initialize (&db_info, FALSE);
17971797

0 commit comments

Comments
 (0)