Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions include/khook.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/
#pragma once

#include <algorithm>
#include <cstdint>
#include <type_traits>
#include <unordered_set>
Expand Down Expand Up @@ -95,10 +96,10 @@ class Hook : public __Hook {
#else
std::uint32_t return_size = 0;
if constexpr(!std::is_void_v<RETURN>) {
return_size = std::max(sizeof(void*), sizeof(RETURN));
return_size = (std::max)(sizeof(void*), sizeof(RETURN));
}

return return_size + (std::max(sizeof(void*), sizeof(ARGS)) + ... + 0);
return return_size + ((std::max)(sizeof(void*), sizeof(ARGS)) + ... + 0);
#endif
}
protected:
Expand Down