Fix native api (#1761)

This commit is contained in:
LoveSy 2022-03-15 19:59:15 +08:00 committed by GitHub
parent 159c65d6b2
commit 793c2e5757
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ namespace lspd {
return InstallNativeAPI({ return InstallNativeAPI({
.inline_hooker = [](auto t, auto r) { .inline_hooker = [](auto t, auto r) {
void* bk = nullptr; void* bk = nullptr;
return HookFunction(t, r, &bk) ? bk : nullptr; return HookFunction(t, r, &bk) == RS_SUCCESS ? bk : nullptr;
}, },
}); });
}(); }();