mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-13 09:15:36 +00:00
[Refs #87: Static Analysis] Couple of cases that confused the analyser
This commit is contained in:
@@ -93,6 +93,7 @@ private:
|
||||
|
||||
static HRESULT WINAPI CreateDXGIFactory_hook(__in REFIID riid, __out void **ppFactory)
|
||||
{
|
||||
if(ppFactory) *ppFactory = NULL;
|
||||
HRESULT ret = dxgihooks.CreateDXGIFactory()(riid, ppFactory);
|
||||
|
||||
if(SUCCEEDED(ret) && dxgihooks.m_EnabledHooks)
|
||||
@@ -103,6 +104,7 @@ private:
|
||||
|
||||
static HRESULT WINAPI CreateDXGIFactory1_hook(__in REFIID riid, __out void **ppFactory)
|
||||
{
|
||||
if(ppFactory) *ppFactory = NULL;
|
||||
HRESULT ret = dxgihooks.CreateDXGIFactory1()(riid, ppFactory);
|
||||
|
||||
if(SUCCEEDED(ret) && dxgihooks.m_EnabledHooks)
|
||||
|
||||
@@ -112,6 +112,10 @@ class SysHook : LibraryHook
|
||||
{
|
||||
lpProcessInformation = &dummy;
|
||||
}
|
||||
else
|
||||
{
|
||||
*lpProcessInformation = dummy;
|
||||
}
|
||||
|
||||
dwCreationFlags |= CREATE_SUSPENDED;
|
||||
|
||||
@@ -164,6 +168,10 @@ class SysHook : LibraryHook
|
||||
{
|
||||
lpProcessInformation = &dummy;
|
||||
}
|
||||
else
|
||||
{
|
||||
*lpProcessInformation = dummy;
|
||||
}
|
||||
|
||||
dwCreationFlags |= CREATE_SUSPENDED;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user