Skip to content

Commit

Permalink
Updated MAX_HOOK_COUNT to fit documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
sergio Fonseca committed Jun 27, 2016
1 parent a8468af commit 33d5468
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Public/easyhook.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ extern "C"{
#define EASYHOOK_NT_EXPORT EXTERN_C NTSTATUS EASYHOOK_API
#define EASYHOOK_BOOL_EXPORT EXTERN_C BOOL EASYHOOK_API

#define MAX_HOOK_COUNT 128
#define MAX_HOOK_COUNT 1024
#define MAX_ACE_COUNT 128
#define MAX_THREAD_COUNT 128
#define MAX_PASSTHRU_SIZE 1024 * 64
Expand Down
4 changes: 2 additions & 2 deletions Test/EasyHook.Tests/LocalHookTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ public void Initialise()
[TestMethod]
public void InstallTooManyHooks_ThrowException()
{
int maxHookCount = 128;
int maxHookCount = 1024;

List<LocalHook> hooks = new List<LocalHook>();

// Install MAX_HOOK_COUNT hooks (i.e. 128)
// Install MAX_HOOK_COUNT hooks (i.e. 1024)
for (var i = 0; i < maxHookCount; i++)
{
LocalHook lh = LocalHook.Create(
Expand Down

0 comments on commit 33d5468

Please sign in to comment.