]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/stdpaths.cpp
Update for new event handler stuff
[wxWidgets.git] / src / msw / stdpaths.cpp
index 4ba9dc6d3cb6e7bf24801585898d21eeaa501af2..707c30e38341a92e4cb91a387ace6c9b0be411df 100644 (file)
@@ -246,7 +246,9 @@ wxString wxStandardPaths::GetUserConfigDir() const
 
 wxString wxStandardPaths::GetDataDir() const
 {
-    return AppendAppName(DoGetDirectory(CSIDL_PROGRAM_FILES));
+    // under Windows each program is usually installed in its own directory and
+    // so its datafiles are in the same directory as its main executable
+    return wxFileName(wxGetFullModuleName()).GetPath();
 }
 
 wxString wxStandardPaths::GetUserDataDir() const