[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Uninitialized variable in file tLuaControl.cpp in luacom
- From: Nick Gammon <nick@...>
- Date: Sat, 2 Sep 2006 13:56:04 +1000
I am attempting to recompile LuaCom from the file:
The reason for doing this is to make a binary version compatible with
I had a number of housekeeping problems which seemed to be related to
incompatibilities with versions, however the major problem is in the
function COleControl::DoVerb in file tLuaControl.cpp around line 757.
There is a line there:
if (hr == OLEOBJ_S_INVALIDVERB)
However hr is not initialized when it is declared and in that
particular branch (the default for the switch) it is not initialized
before being tested.
I am not enough of an expert to know what the function is trying to
do here, but I am guessing there is a missing function call that will
establish the value for hr before it is tested.
Would someone be able to advise the correction for this problem? Thanks.