Write null pointer for unsupported interfaces
authorDmitry-Me <wipedout@yandex.ru>
Tue, 2 Feb 2016 07:04:43 +0000 (10:04 +0300)
committerDmitry-Me <wipedout@yandex.ru>
Tue, 2 Feb 2016 07:04:43 +0000 (10:04 +0300)
src/zap/zapwriter.h

index 735904b..4a2b313 100644 (file)
@@ -358,6 +358,7 @@ class ZapWriter : public IStream
             *ppv = static_cast<IStream *>(this);
         }
         else {
+            *ppv = NULL;
             hr = E_NOINTERFACE;
         }
         return hr;