davidm / luacom

Microsoft Component Object Model (COM) binding for Lua
http://lua-users.org/wiki/LuaCom
Other
117 stars 52 forks source link

Convert boolean true to VARIANT_TRUE #17

Open moteus opened 8 years ago

moteus commented 8 years ago

LuaCOM convert true to 1 not to VARIANT_TRUE (wich is -1)

  case LUA_TBOOLEAN:
    varg.vt = VT_BOOL;
    varg.boolVal = lua_toboolean(L, luaval);

Some Interfaces does not accept this value as true. (e.g. INetFwRule).