From 293ccea4ed14a7616768b25f21214bda50ab282f Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 6 Dec 2005 19:07:28 +0000 Subject: [PATCH] Initialize values (uninitialized variables reported to cause problems on WinME) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@36346 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/registry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/registry.cpp b/src/msw/registry.cpp index 96a1ca1e66..cf73360b6f 100644 --- a/src/msw/registry.cpp +++ b/src/msw/registry.cpp @@ -834,7 +834,7 @@ bool wxRegKey::QueryValue(const wxChar *szValue, if ( CONST_CAST Open() ) { #ifdef __WIN32__ // 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, &dwType, NULL, &dwSize); if ( m_dwLastError == ERROR_SUCCESS ) {