message: Check output pointer before writing
diff: @@ -314,6 +314,7 @@ private:
  if(riid == __uuidof(IDXGraphicsAnalysis))
  {
  dxgihooks.m_RenderDocAnalysis.AddRef();
  + if(ppDebug)
  *ppDebug = &dxgihooks.m_RenderDocAnalysis;
  return S_OK;
  }
  @@ -323,6 +324,7 @@ private:
  "Returning a dummy IDXGIInfoQueue that does nothing. RenderDoc takes control of the "
  "debug layer.");
  dxgihooks.m_DummyInfoQueue.AddRef();
  + if(ppDebug)
  *ppDebug = &dxgihooks.m_DummyInfoQueue;
  return S_OK;
  }
  @@ -343,6 +345,7 @@ private:
  if(riid == __uuidof(IDXGraphicsAnalysis))
  {
  dxgihooks.m_RenderDocAnalysis.AddRef();
  + if(ppDebug)
  *ppDebug = &dxgihooks.m_RenderDocAnalysis;
  return S_OK;
  }
  @@ -352,6 +355,7 @@ private:
  "Returning a dummy IDXGIInfoQueue that does nothing. RenderDoc takes control of the "
  "debug layer.");
  dxgihooks.m_DummyInfoQueue.AddRef();
  + if(ppDebug)
  *ppDebug = &dxgihooks.m_DummyInfoQueue;
  return S_OK;
  }
  