[vlc-commits] commit: Lua: fix previous commit (83ab54255) ( Jean-Philippe André )

git at videolan.org git at videolan.org
Sat Mar 20 18:34:43 CET 2010


vlc | branch: master | Jean-Philippe André <jpeg at videolan.org> | Sat Mar 20 18:04:33 2010 +0100| [6ee0699ed2561a62b6c8886b6699312b5b31fbfb] | committer: Jean-Philippe André 

Lua: fix previous commit (83ab54255)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6ee0699ed2561a62b6c8886b6699312b5b31fbfb
---

 modules/misc/lua/libs/dialog.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/misc/lua/libs/dialog.c b/modules/misc/lua/libs/dialog.c
index 851887e..66f30a9 100644
--- a/modules/misc/lua/libs/dialog.c
+++ b/modules/misc/lua/libs/dialog.c
@@ -420,7 +420,7 @@ static int vlclua_dialog_add_button( lua_State *L )
     p_widget->psz_text = strdup( luaL_checkstring( L, 2 ) );
     lua_settop( L, 10 );
     lua_pushlightuserdata( L, p_widget );
-    lua_insert( L, 10 );
+    lua_pushvalue( L, 3 );
     lua_settable( L, LUA_REGISTRYINDEX );
     p_widget->p_sys = NULL;
 



More information about the vlc-commits mailing list