mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-03-03 07:29:23 +00:00
parent
533f3d1ef1
commit
fd76fa0016
1 changed files with 1 additions and 1 deletions
|
@ -1139,7 +1139,7 @@ static inline bool IsHookDefined(const char *s) {
|
|||
|
||||
static void CallSimpleHook(const char *s) {
|
||||
lua_getglobal(L, s);
|
||||
if (lua_pcall(L, 1, 0, 0) != LUA_OK) {
|
||||
if (lua_pcall(L, 0, 0, 0) != LUA_OK) {
|
||||
WARNF("%s: %s", s, lua_tostring(L, -1));
|
||||
lua_pop(L, 1);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue