const wxString& localFilename,
const wxString& globalFilename,
long style)
- : wxConfigBase(!appName && wxTheApp ? wxTheApp->GetAppName()
- : appName,
- !vendorName ? (wxTheApp ? wxTheApp->GetVendorName()
- : appName)
- : vendorName,
- strLocal, strGlobal, style),
+ : wxConfigBase(!strAppName && wxTheApp ? wxTheApp->GetAppName()
+ : strAppName,
+ !strVendor ? (wxTheApp ? wxTheApp->GetVendorName()
+ : strAppName)
+ : strVendor,
+ localFilename, globalFilename, style)
{
m_strLocalFilename = localFilename;
if (m_strLocalFilename.IsEmpty())
char szBuf[MAX_PATH];
size_t nRc = GetWindowsDirectory(szBuf, WXSIZEOF(szBuf));
if ( nRc == 0 )
+ {
wxLogLastError("GetWindowsDirectory");
+ }
else if ( nRc > WXSIZEOF(szBuf) )
+ {
wxFAIL_MSG("buffer is too small for Windows directory.");
+ }
wxString strFile = szBuf;
strFile << '\\' << m_strLocalFilename;