wxldtarg.cpp
note change < and > to () so it does not look like top posting
This is a critical change:

the buffer size is modified by wx2lua
so buf.length() does not reflect the right size.
compile may fail
134c134,135
   (                 int rc = m_wxlState.LuaDoBuffer(wx2lua(buf), buf.Length(),
   ---
   )                            wxLuaCharBuffer buffer(buf);
   )                 int rc = m_wxlState.LuaDoBuffer(buffer, buffer.Length(),
-------------------------------------------------------------------------

wxluasocket_bind.cpp
Minor change:
This does not cause any problem 
file and filename are interchanged (just odd when you read the code) 
238c238
   (     const wxString fileName = wxlua_getwxStringtype(L, 3);
   ---
   )     const wxString file = wxlua_getwxStringtype(L, 3);
240c240
   (     const wxString file = wxlua_getwxStringtype(L, 2);
   ---
   (     const wxString fileName = wxlua_getwxStringtype(L, 2);
244c244
   (     bool returns = (self->Run(file, fileName));
   ---
   )     bool returns = (self->Run(fileName, file));

Andre


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to