diff --git a/vnrhook/engine/engine.cc b/vnrhook/engine/engine.cc index f6d9a43..c31d305 100644 --- a/vnrhook/engine/engine.cc +++ b/vnrhook/engine/engine.cc @@ -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); } } @@ -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; diff --git a/vnrhook/hijack/texthook.cc b/vnrhook/hijack/texthook.cc index 3a28aa8..bc6705a 100644 --- a/vnrhook/hijack/texthook.cc +++ b/vnrhook/hijack/texthook.cc @@ -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; }