summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-01-29 10:44:46 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-01-29 10:44:46 -0500
commit6f6ae8af3e3fdee60d38fa12f25ff83097522807 (patch)
tree353936408eb0329a9833db8d847e1e4a69ae18b8 /main.c
parent31b5649b131695300f39563640c4af8f0d3032cb (diff)
got windows build to work again
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.c b/main.c
index 686a515..44a612c 100644
--- a/main.c
+++ b/main.c
@@ -123,13 +123,13 @@ int main(int argc, char **argv) {
wchar_t *appdata = NULL;
KNOWNFOLDERID id = FOLDERID_LocalAppData;
if (SHGetKnownFolderPath(&id, 0, NULL, &appdata) == S_OK) {
- strbuf_printf(ted_local_data_dir, "%ls" PATH_SEPARATOR_STR "ted", appdata);
+ strbuf_printf(ted->local_data_dir, "%ls" PATH_SEPARATOR_STR "ted", appdata);
CoTaskMemFree(appdata);
}
id = FOLDERID_Profile;
wchar_t *home = NULL;
if (SHGetKnownFolderPath(&id, 0, NULL, &home) == S_OK) {
- strbuf_printf(ted_home, "%ls", home);
+ strbuf_printf(ted->home, "%ls", home);
CoTaskMemFree(home);
}
strbuf_printf(ted->global_data_dir, "C:\\Program Files\\ted");
@@ -162,7 +162,7 @@ int main(int argc, char **argv) {
char *last_backslash = strrchr(executable_path, '\\');
if (last_backslash) {
*last_backslash = '\0';
- ted_search_cwd = streq(cwd, executable_path);
+ ted->search_cwd = streq(cwd, executable_path);
}
}
#else