- wchar_t *wpath = 0;
- char *appdata;
- if(SHGetKnownFolderPath(&FOLDERID_RoamingAppData, 0, NULL, &wpath) != S_OK) {
- disorder_error(0, "error calling SHGetKnownFolderPath");
- return 0;
- }
- t = win_wtomb(wpath);
- CoTaskMemFree(wpath);
- byte_xasprintf(&profiledir, "%s\\DisOrder", appdata);
+ wchar_t *wpath = 0;
+ char *appdata;
+ if(SHGetKnownFolderPath(&FOLDERID_RoamingAppData, 0, NULL, &wpath) != S_OK) {
+ disorder_error(0, "error calling SHGetKnownFolderPath");
+ return 0;
+ }
+ t = win_wtomb(wpath);
+ CoTaskMemFree(wpath);
+ byte_xasprintf(&profiledir, "%s\\DisOrder", appdata);