Skip to content

Commit

Permalink
Fix exports so that it's actually a shell extension
Browse files Browse the repository at this point in the history
  • Loading branch information
namazso committed Jun 24, 2023
1 parent c45f1b5 commit d159db4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion LegacyAlgorithms/LegacyHasher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ struct AlgorithmsDll
~AlgorithmsDll() = default;
};

__declspec(dllexport) const AlgorithmsDll& get_algorithms_dll()
const AlgorithmsDll& get_algorithms_dll()
{
static AlgorithmsDll algorithms_dll;
return algorithms_dll;
Expand Down
5 changes: 5 additions & 0 deletions OpenHashTab/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ target_compile_options(OpenHashTab PRIVATE
/EHsc
)

target_link_options(OpenHashTab PRIVATE
/EXPORT:DllCanUnloadNow
/EXPORT:DllGetClassObject
)

target_precompile_headers(OpenHashTab PRIVATE stdafx.h)

add_custom_command(TARGET OpenHashTab POST_BUILD
Expand Down

0 comments on commit d159db4

Please sign in to comment.