X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Ffs%2Fwindows%2Fdir_location.cpp;h=85c5c2fa30d1f6809c359cfb7f919605d83fedfb;hb=1787d4928ac1285f5434a2c8d0676deea9ce9176;hp=4f9b8f643b723b9317af370a84dbc8b7e6529b8e;hpb=3bfc22d12b893d94cbb4697a77b7cababcbbd921;p=libs%2Fcore.git diff --git a/source/fs/windows/dir_location.cpp b/source/fs/windows/dir_location.cpp index 4f9b8f6..85c5c2f 100644 --- a/source/fs/windows/dir_location.cpp +++ b/source/fs/windows/dir_location.cpp @@ -1,5 +1,6 @@ #include #include +#include #include "dir.h" using namespace std; @@ -19,7 +20,7 @@ Path get_user_data_dir() { const string &appname = Application::get_name(); if(appname.empty()) - throw logic_error("no application name"); + throw invalid_state("no application name"); char datadir[MAX_PATH]; if(SHGetFolderPath(nullptr, CSIDL_LOCAL_APPDATA, nullptr, 0, datadir)==S_OK)