X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0be027c45bc1890ca714552b8571500278e620e5..68b9924c4e76c42929098568482e1718a0fa1d2f:/src/msw/registry.cpp diff --git a/src/msw/registry.cpp b/src/msw/registry.cpp index ab1629ca2a..e67bed9375 100644 --- a/src/msw/registry.cpp +++ b/src/msw/registry.cpp @@ -4,7 +4,6 @@ // Author: Vadim Zeitlin // Modified by: // Created: 03.04.98 -// RCS-ID: $Id$ // Copyright: (c) 1998 Vadim Zeitlin // Licence: wxWindows licence // TODO: - parsing of registry key names @@ -33,10 +32,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 +325,7 @@ void wxRegKey::SetHkey(WXHKEY hKey) m_mode = Write; // reset old data - m_strKey.empty(); + m_strKey.clear(); m_dwLastError = 0; } @@ -1057,7 +1056,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; @@ -1235,7 +1234,7 @@ bool wxRegKey::Export(const wxString& filename) const wxFFileOutputStream ostr(filename, wxT("w")); - return ostr.Ok() && Export(ostr); + return ostr.IsOk() && Export(ostr); #else wxUnusedVar(filename); return false;