diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2019-09-26 09:22:09 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2019-09-26 09:22:09 +0200 |
commit | d18ee31facdf341aa2e79a782e4701d46c57621c (patch) | |
tree | 2354d8a1adc7a5939bd6499290422096b83b3e18 /include | |
parent | 25bf52435cb7297531bfc3538a9c2c0f06b9f8aa (diff) |
added explicit struct constructor
Diffstat (limited to 'include')
-rw-r--r-- | include/PatternScanner.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/PatternScanner.h b/include/PatternScanner.h index 7a661aa..1c53349 100644 --- a/include/PatternScanner.h +++ b/include/PatternScanner.h @@ -12,8 +12,10 @@ typedef bool(*map_file_cleanup_cb)(IN MODULE_DATA&, IN PVOID, IN PVOID const); struct map_file_data { - map_file_cb map_file; - map_file_cleanup_cb map_file_cleanup; + explicit map_file_data(map_file_cb _mapfile, map_file_cleanup_cb _mapcleanup, bool _in_memory_module) + : mapfile(_mapfile), mapcleanup(_mapcleanup), in_memory_module(_in_memory_module) {} + map_file_cb mapfile; + map_file_cleanup_cb mapcleanup; bool in_memory_module; }; |