Warning fix: calling convention of '__cdecl ' ignored; '__clrcall ' used instead (#5931)

This commit is contained in:
Seraphima Zykova 2020-08-17 16:41:11 +03:00 committed by GitHub
parent 2e48b583c0
commit 947bf10c2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ void KeyboardHook::Start()
}
}
LRESULT CALLBACK KeyboardHook::HookProc(int nCode, WPARAM wParam, LPARAM lParam)
LRESULT __clrcall KeyboardHook::HookProc(int nCode, WPARAM wParam, LPARAM lParam)
{
if (nCode == HC_ACTION && isActiveCallback->Invoke())
{

View File

@ -39,7 +39,7 @@ public
HHOOK hookHandle;
HookProcDelegate ^ hookProc;
LRESULT CALLBACK HookProc(int nCode, WPARAM wParam, LPARAM lParam);
LRESULT __clrcall HookProc(int nCode, WPARAM wParam, LPARAM lParam);
};
}