Fix wxFileConfig for WinCE
Provide standard WinCE Windows path for wxStandardPaths git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32929 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -292,7 +292,10 @@ wxString wxFileConfig::GetGlobalDir()
|
|||||||
// There's no such thing as global cfg dir in MS-DOS, let's return
|
// There's no such thing as global cfg dir in MS-DOS, let's return
|
||||||
// current directory (FIXME_MGL?)
|
// current directory (FIXME_MGL?)
|
||||||
return wxT(".\\");
|
return wxT(".\\");
|
||||||
#else // Windows
|
#elif defined(__WXWINCE__)
|
||||||
|
strDir = wxT("\\Windows\\");
|
||||||
|
#elif // Windows
|
||||||
|
|
||||||
wxChar szWinDir[MAX_PATH];
|
wxChar szWinDir[MAX_PATH];
|
||||||
::GetWindowsDirectory(szWinDir, MAX_PATH);
|
::GetWindowsDirectory(szWinDir, MAX_PATH);
|
||||||
|
|
||||||
|
@@ -282,9 +282,8 @@ wxString wxStandardPathsWin16::GetConfigDir() const
|
|||||||
wxLogLastError(_T("GetWindowsDirectory"));
|
wxLogLastError(_T("GetWindowsDirectory"));
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
// TODO:
|
// TODO: use CSIDL_WINDOWS (eVC4, possibly not eVC3)
|
||||||
// eVC4 - use CSIDL_WINDOWS
|
return wxT("\\Windows");
|
||||||
// eVC3 - probably not possible through API
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return dir;
|
return dir;
|
||||||
|
Reference in New Issue
Block a user