# HG changeset patch # User jld # Date 1043539139 0 # Node ID ea8eda51bc887c1b87e1af482dc75d19e32f3787 # Parent 9034ec3868e5fa1b4ad3b04ec77cf28c33f47a61 * standalone/wxwin/configtool.cpp: Use correct data type in call to RegCreateKeyEx() to eliminate compiler warning. diff --git a/host/tools/configtool/ChangeLog b/host/tools/configtool/ChangeLog --- a/host/tools/configtool/ChangeLog +++ b/host/tools/configtool/ChangeLog @@ -1,5 +1,8 @@ 2003-01-25 John Dallaway + * standalone/wxwin/configtool.cpp: Use correct data type in call + to RegCreateKeyEx() to eliminate compiler warning. + * standalone/wxwin/ecpch.h: #include early for Cygwin builds to eliminate fd_set compiler warning diff --git a/host/tools/configtool/standalone/wxwin/configtool.cpp b/host/tools/configtool/standalone/wxwin/configtool.cpp --- a/host/tools/configtool/standalone/wxwin/configtool.cpp +++ b/host/tools/configtool/standalone/wxwin/configtool.cpp @@ -909,7 +909,7 @@ bool ecApp::Launch(const wxString & strF ext.c_str()); return FALSE; } - + bool ok = ft->GetOpenCommand(&cmd, wxFileType::MessageParameters(strFileName, _T(""))); delete ft; @@ -1281,7 +1281,7 @@ void ecApp::CygMountText(wxChar c) DWORD disposition; HKEY hSubKey = 0; - if (ERROR_SUCCESS == RegCreateKeyEx(hKey, key, NULL, NULL, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, + if (ERROR_SUCCESS == RegCreateKeyEx(hKey, key, 0, NULL, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, & hSubKey, & disposition)) { RegSetValueEx(hSubKey, "native", 0, REG_SZ, (unsigned char*) (const wxChar*) value, value.Length() + 1);