From c5d5976b47d2bdeb9dc0cf1784f1901601a69e4d Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Thu, 20 Sep 2018 22:42:15 -0400 Subject: [PATCH] refactor --- vnrhook/main.cc | 2 +- vnrhook/pipe.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vnrhook/main.cc b/vnrhook/main.cc index dd204e7..6985c78 100644 --- a/vnrhook/main.cc +++ b/vnrhook/main.cc @@ -23,7 +23,7 @@ int currentHook = 0, userhookCount = 0; DWORD trigger = 0; HANDLE hmMutex; -BOOL WINAPI DllMain(HINSTANCE hModule, DWORD fdwReason, LPVOID unused) +BOOL WINAPI DllMain(HINSTANCE hModule, DWORD fdwReason, LPVOID) { switch (fdwReason) { diff --git a/vnrhook/pipe.cc b/vnrhook/pipe.cc index 1321420..c52e6b6 100644 --- a/vnrhook/pipe.cc +++ b/vnrhook/pipe.cc @@ -21,7 +21,7 @@ DWORD DUMMY[100]; void CreatePipe() { - CreateThread(nullptr, 0, [](LPVOID unused) + CreateThread(nullptr, 0, [](LPVOID) { enum { STANDARD_WAIT = 50 }; while (::running)