Skip to content

Commit

Permalink
bugfix read code/rio hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Artikash committed Sep 2, 2018
1 parent 6ca7eb3 commit 0c4bb85
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions vnrhook/engine/engine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5732,7 +5732,7 @@ int GetShinaRioVersion()
fname[len -1] = 'i';
fname[len -2] = 'n';
fname[len -3] = 'i';
hFile = CreateFileW(fname, FILE_READ_DATA, FILE_SHARE_READ, nullptr, FILE_OPEN, FILE_ATTRIBUTE_NORMAL, nullptr);
hFile = CreateFileW(fname, FILE_READ_DATA, FILE_SHARE_READ, nullptr, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, nullptr);
}
}

Expand Down Expand Up @@ -5765,7 +5765,7 @@ bool InsertShinaHook()
hp.text_fun = SpecialHookShina2;
hp.type = USING_STRING;
ConsoleOutput("vnreng: INSERT ShinaRio > 2.47");
NewHook(hp, "ShinaRio");
// NewHook(hp, "ShinaRio");
//RegisterEngineType(ENGINE_SHINA);
return true;

Expand Down
2 changes: 1 addition & 1 deletion vnrhook/hijack/texthook.cc
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ DWORD WINAPI ReaderThread(LPVOID hookPtr)

bool TextHook::InsertReadCode()
{
RemoveHook(hp.address); // Artikash 8/25/2018: clear existing
//RemoveHook(hp.address); // Artikash 8/25/2018: clear existing
hp.readerHandle = CreateThread(nullptr, 0, ReaderThread, this, 0, nullptr);
return true;
}
Expand Down

0 comments on commit 0c4bb85

Please sign in to comment.