Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/lua-winreg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/luawin_dllerror.c')
-rw-r--r--src/luawin_dllerror.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/luawin_dllerror.c b/src/luawin_dllerror.c
index 68f0db0..d661083 100644
--- a/src/luawin_dllerror.c
+++ b/src/luawin_dllerror.c
@@ -12,8 +12,7 @@ void lua_dllerror(lua_State *L, DWORD dwErr){
/*
if lgk_dllerror is present in global env and equal to false dont raise error!
*/
- lua_pushliteral(L, lgk_dllerror);
- lua_rawget(L, LUA_GLOBALSINDEX);
+ lua_getglobal(L, lgk_dllerror);
if(lua_isrealfalse(L, -1)){
WIN_TRACEA("lua_dllerror:false");