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:
parent
32c0c61cbd
commit
873aefb8b9
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user