mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Cosmetics
This commit is contained in:
parent
ca9bc0e880
commit
a95c0a9284
@ -39,7 +39,6 @@ CPerfTitleDatabase::CPerfTitleDatabase(
|
|||||||
|
|
||||||
// Find out the max number of entries
|
// Find out the max number of entries
|
||||||
HKEY hKeyPerflib = 0;
|
HKEY hKeyPerflib = 0;
|
||||||
DWORD cbLastIndex = sizeof(DWORD);
|
|
||||||
|
|
||||||
// Open the registry key that has the values for the maximum number
|
// Open the registry key that has the values for the maximum number
|
||||||
// of title strings
|
// of title strings
|
||||||
@ -50,6 +49,7 @@ CPerfTitleDatabase::CPerfTitleDatabase(
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
// Read in the number of title strings
|
// Read in the number of title strings
|
||||||
|
DWORD cbLastIndex = sizeof(m_nLastIndex);
|
||||||
if ( ERROR_SUCCESS != RegQueryValueEx(
|
if ( ERROR_SUCCESS != RegQueryValueEx(
|
||||||
hKeyPerflib, pszLastIndexRegValue, 0, 0,
|
hKeyPerflib, pszLastIndexRegValue, 0, 0,
|
||||||
(PBYTE)&m_nLastIndex, &cbLastIndex ) )
|
(PBYTE)&m_nLastIndex, &cbLastIndex ) )
|
||||||
|
Loading…
Reference in New Issue
Block a user