Coverity: Fix newly added defects

This commit is contained in:
baldurk
2016-05-23 19:04:07 +02:00
parent 1ddcc2f919
commit bbe25464f0
3 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -189,7 +189,7 @@ public:
void RegisterShutdownFunction(ShutdownFunction func) { m_ShutdownFunctions.insert(func); }
void SetReplayApp(bool replay) { m_Replay = replay; }
bool IsReplayApp() const { return m_Replay; }
string GetConfigSetting(string name) { return m_ConfigSettings[name]; }
const string &GetConfigSetting(string name) { return m_ConfigSettings[name]; }
void SetConfigSetting(string name, string value) { m_ConfigSettings[name] = value; }
void BecomeReplayHost(volatile uint32_t &killReplay);
+3 -2
View File
@@ -133,7 +133,7 @@ struct DummyID3D11InfoQueue : public ID3D11InfoQueue
{
WrappedID3D11Device *m_pDevice;
DummyID3D11InfoQueue() {}
DummyID3D11InfoQueue() : m_pDevice(NULL) {}
//////////////////////////////
// implement IUnknown
HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, void **ppvObject) { return E_NOINTERFACE; }
@@ -232,7 +232,8 @@ struct DummyID3D11Debug : public ID3D11Debug
{
WrappedID3D11Device *m_pDevice;
DummyID3D11Debug() {}
DummyID3D11Debug() : m_pDevice(NULL) {}
//////////////////////////////
// implement IUnknown
HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, void **ppvObject) { return E_NOINTERFACE; }
+1 -1
View File
@@ -66,7 +66,7 @@ void VulkanDebugManager::GPUBuffer::Create(WrappedVulkan *driver, VkDevice dev,
VkResult vkr = driver->vkCreateBuffer(dev, &bufInfo, NULL, &buf);
RDCASSERTEQUAL(vkr, VK_SUCCESS);
VkMemoryRequirements mrq;
VkMemoryRequirements mrq = {};
driver->vkGetBufferMemoryRequirements(dev, buf, &mrq);
VkMemoryAllocateInfo allocInfo = {