X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/906c935a80b10d53cecf57f71ab5f3f4f1d529ec..4e15d1caa03346c126015019c1fdf093033ef40b:/src/msw/registry.cpp?ds=inline diff --git a/src/msw/registry.cpp b/src/msw/registry.cpp index 83d11c2769..144009b810 100644 --- a/src/msw/registry.cpp +++ b/src/msw/registry.cpp @@ -33,10 +33,10 @@ #include "wx/dynlib.h" #include "wx/file.h" #include "wx/wfstream.h" +#include "wx/msw/private.h" // Windows headers #ifdef __WXWINCE__ -#include "wx/msw/private.h" #include #include #endif @@ -326,7 +326,7 @@ void wxRegKey::SetHkey(WXHKEY hKey) m_mode = Write; // reset old data - m_strKey.empty(); + m_strKey.clear(); m_dwLastError = 0; } @@ -1057,7 +1057,7 @@ bool wxRegKey::SetValue(const wxString& szValue, const wxString& strValue) m_dwLastError = RegSetValueEx((HKEY) m_hKey, RegValueStr(szValue), (DWORD) RESERVED, REG_SZ, - (RegString)strValue.t_str(), + (RegString)wxMSW_CONV_LPCTSTR(strValue), (strValue.Len() + 1)*sizeof(wxChar)); if ( m_dwLastError == ERROR_SUCCESS ) return true;