From ca9bc0e880ccbfe4a995846da890c2127717c60e Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Mon, 23 Dec 2013 18:18:53 +0000 Subject: [PATCH] PerfMon/AdvancedCPU: Fix use of uninitialized variable This caused problems on Release\Win32 builds. --- Plugins/PluginPerfMon/Titledb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/PluginPerfMon/Titledb.cpp b/Plugins/PluginPerfMon/Titledb.cpp index 49ab5f81..16f4f097 100644 --- a/Plugins/PluginPerfMon/Titledb.cpp +++ b/Plugins/PluginPerfMon/Titledb.cpp @@ -39,7 +39,7 @@ CPerfTitleDatabase::CPerfTitleDatabase( // Find out the max number of entries HKEY hKeyPerflib = 0; - DWORD cbLastIndex; + DWORD cbLastIndex = sizeof(DWORD); // Open the registry key that has the values for the maximum number // of title strings