]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/registry.cpp
moved common code from ctor and Create() to a separate Init() function
[wxWidgets.git] / src / msw / registry.cpp
index ef80ce3c23502725ee20e95b6240b86028068a4c..f9431a9d1f22f74a8d530b12c3f6f0080d3497ca 100644 (file)
@@ -144,7 +144,7 @@ wxRegKey::StdKey wxRegKey::ExtractKeyName(wxString& strKey)
 {
   wxString strRoot = strKey.Left(REG_SEPARATOR);
 
-  HKEY hRootKey;
+  HKEY hRootKey = 0;
   size_t ui;
   for ( ui = 0; ui < nStdKeys; ui++ ) {
     if ( strRoot.CmpNoCase(aStdKeys[ui].szName) == 0 ||