Initialize values (uninitialized variables reported to cause problems on WinME)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36346 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -897,7 +897,7 @@ bool wxRegKey::QueryValue(const wxChar *szValue,
|
|||||||
{
|
{
|
||||||
|
|
||||||
// first get the type and size of the data
|
// first get the type and size of the data
|
||||||
DWORD dwType, dwSize;
|
DWORD dwType=REG_NONE, dwSize=0;
|
||||||
m_dwLastError = RegQueryValueEx((HKEY) m_hKey, WXSTRINGCAST szValue, RESERVED,
|
m_dwLastError = RegQueryValueEx((HKEY) m_hKey, WXSTRINGCAST szValue, RESERVED,
|
||||||
&dwType, NULL, &dwSize);
|
&dwType, NULL, &dwSize);
|
||||||
if ( m_dwLastError == ERROR_SUCCESS )
|
if ( m_dwLastError == ERROR_SUCCESS )
|
||||||
|
Reference in New Issue
Block a user