Skip to content

Commit 4f84018

Browse files
committed
Fixed minor bugs
1 parent 2b8a293 commit 4f84018

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/hive.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ reg_path_t* reg_make_path(uint32_t depth, ...)
251251
}
252252

253253
// Allocation of registry path struct
254-
reg_path_t* reg_path_ptr = malloc_check(reg_path_ptr, sizeof(reg_path_t), hv_alloc_error);
254+
reg_path_t* reg_path_ptr = malloc_check(reg_path_ptr, sizeof(reg_path_t), NULL);
255255

256256
// Setting given values
257257
reg_path_ptr->size = depth;

src/hive.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,10 +275,10 @@ void* reg_get_value(const value_key_t* vk_ptr, FILE* hive_ptr);
275275
wchar_t* reg_get_class(named_key_t* nk_ptr, FILE* hive_ptr);
276276

277277
// Sets file cursor from beggining to 0x1000 + root_offset
278-
inline int hive_file_seek(FILE* hive_ptr, const uint32_t root_offset);
278+
int hive_file_seek(FILE* hive_ptr, const uint32_t root_offset);
279279

280280
// Reads structure from given give
281-
inline size_t hive_read_struct(FILE* hive_ptr, void* hive_struct, size_t read_size);
281+
size_t hive_read_struct(FILE* hive_ptr, void* hive_struct, size_t read_size);
282282

283283
// Reads root named key and header of a hive
284284
int hive_get_root(FILE* hive_ptr, hive_header_t* hive_header_ptr, named_key_t* root_key_ptr);

0 commit comments

Comments
 (0)