X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=activex%2Futils.cpp;h=f5d4f9966661512eadbcf81c5d024ed2922ec9e4;hb=2a4da6a518aad594032014927cc41404935e921b;hp=80c4fd5a74a7b1a86086bd07628168ba4cd45a4b;hpb=7445b6bdc79aa60e338ca3572a771a942e7903c6;p=vlc diff --git a/activex/utils.cpp b/activex/utils.cpp index 80c4fd5a74..f5d4f99666 100644 --- a/activex/utils.cpp +++ b/activex/utils.cpp @@ -17,7 +17,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ #include "utils.h" @@ -82,6 +82,7 @@ HRESULT GetObjectProperty(LPUNKNOWN object, DISPID dispID, VARIANT& v) { DISPPARAMS dispparamsNoArgs = {NULL, NULL, 0, 0}; VARIANT vres; + VariantInit(&vres); hr = pDisp->Invoke(dispID, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_PROPERTYGET, &dispparamsNoArgs, &vres, NULL, NULL); if( SUCCEEDED(hr) )