]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix wxFileConfig for WinCE
authorJulian Smart <julian@anthemion.co.uk>
Sun, 20 Mar 2005 11:52:33 +0000 (11:52 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sun, 20 Mar 2005 11:52:33 +0000 (11:52 +0000)
Provide standard WinCE Windows path for wxStandardPaths

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32929 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/fileconf.cpp
src/msw/stdpaths.cpp

index a4c5629b0b94e66ad140ec2242e7ac778eee6fe6..daaa9291fb555161aea4d60f224f83cc6bce32e6 100644 (file)
@@ -292,7 +292,10 @@ wxString wxFileConfig::GetGlobalDir()
     // There's no such thing as global cfg dir in MS-DOS, let's return
     // current directory (FIXME_MGL?)
     return wxT(".\\");
-#else // Windows
+#elif defined(__WXWINCE__)
+    strDir = wxT("\\Windows\\");
+#elif // Windows
+
     wxChar szWinDir[MAX_PATH];
     ::GetWindowsDirectory(szWinDir, MAX_PATH);
 
index 707c30e38341a92e4cb91a387ace6c9b0be411df..02b714d8f4cdc39a2bdd2df8809d7a277618e188 100644 (file)
@@ -282,9 +282,8 @@ wxString wxStandardPathsWin16::GetConfigDir() const
         wxLogLastError(_T("GetWindowsDirectory"));
     }
 #else
-    // TODO:
-    //    eVC4 - use CSIDL_WINDOWS
-    //    eVC3 - probably not possible through API
+    // TODO: use CSIDL_WINDOWS (eVC4, possibly not eVC3)
+    return wxT("\\Windows");
 #endif
 
     return dir;