X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Ffs%2Fwindows%2Fdir_location.cpp;fp=source%2Ffs%2Fwindows%2Fdir_location.cpp;h=4f9b8f643b723b9317af370a84dbc8b7e6529b8e;hp=4c3b8668438d52d09c1b4816e745563b544dd75e;hb=41363aed34382386f915f17c1a961750b4fdcb14;hpb=26a5878092f6547e701fd1a33abbf1878d26ab70 diff --git a/source/fs/windows/dir_location.cpp b/source/fs/windows/dir_location.cpp index 4c3b866..4f9b8f6 100644 --- a/source/fs/windows/dir_location.cpp +++ b/source/fs/windows/dir_location.cpp @@ -10,7 +10,7 @@ namespace FS { Path get_home_dir() { char home[MAX_PATH]; - if(SHGetFolderPath(0, CSIDL_PERSONAL, 0, 0, home)==S_OK) + if(SHGetFolderPath(nullptr, CSIDL_PERSONAL, nullptr, 0, home)==S_OK) return home; return "."; } @@ -22,7 +22,7 @@ Path get_user_data_dir() throw logic_error("no application name"); char datadir[MAX_PATH]; - if(SHGetFolderPath(0, CSIDL_LOCAL_APPDATA, 0, 0, datadir)==S_OK) + if(SHGetFolderPath(nullptr, CSIDL_LOCAL_APPDATA, nullptr, 0, datadir)==S_OK) return Path(datadir)/appname; return "."; }