Skip to content

Commit b081790

Browse files
committed
1 parent d1e5164 commit b081790

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/process_inject/windows/inject.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ static int injectdll(lua_State* L) {
2828
lua_pushboolean(L, ok);
2929
return 1;
3030
} else {
31-
auto& self = *(bee::subprocess::process*)luaL_checkudata(L, 1, "bee::subprocess");
31+
auto& self = bee::lua::checkudata<bee::subprocess::process>(L, 1);
3232
bool ok = injectdll(self.native_handle(), self.thread_handle(), checkstring(L, 2), checkstring(L, 3), checkstrview(L, 4));
3333
lua_pushboolean(L, ok);
3434
return 1;

0 commit comments

Comments
 (0)