QueryValue should use Open(Read) rather than Open [ Bug 1240345 ]

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34887 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Kevin Hock 2005-07-18 17:52:23 +00:00
parent 32c0c61cbd
commit 873aefb8b9

View File

@ -858,7 +858,7 @@ bool wxRegKey::SetValue(const wxChar *szValue,const wxMemoryBuffer& buffer)
bool wxRegKey::QueryValue(const wxChar *szValue, wxMemoryBuffer& buffer) const
{
if ( CONST_CAST Open() ) {
if ( CONST_CAST Open(Read) ) {
// first get the type and size of the data
DWORD dwType, dwSize;
m_dwLastError = RegQueryValueEx((HKEY) m_hKey, WXSTRINGCAST szValue, RESERVED,