Fix ActiveX compilation
authorJean-Baptiste Kempf <jb@videolan.org>
Tue, 11 Aug 2009 07:45:19 +0000 (09:45 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 11 Aug 2009 07:45:55 +0000 (09:45 +0200)
projects/activex/vlccontrol2.cpp

index 2acec96..4aeac92 100644 (file)
@@ -1346,7 +1346,10 @@ STDMETHODIMP VLCMessageIterator::next(IVLCMessage** message)
 
         buffer.sizeof_msg = sizeof(buffer);
 
-        libvlc_log_iterator_next(_p_iter, &buffer);
+        libvlc_exception_t ex;
+        libvlc_exception_init(&ex);
+
+        libvlc_log_iterator_next(_p_iter, &buffer, &ex);
         *message = new VLCMessage(_p_instance, buffer);
         if( !message )
             hr = E_OUTOFMEMORY;