aboutsummaryrefslogtreecommitdiff
path: root/c/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/main.c')
-rw-r--r--c/main.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/c/main.c b/c/main.c
index 8f8b0e5..90ae714 100644
--- a/c/main.c
+++ b/c/main.c
@@ -112,7 +112,6 @@ WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
break;
case WM_ACTIVATE:
switch (wParam) {
- fid_t f;
term_t t;
extern HWND HElv;
case WA_INACTIVE:
@@ -121,11 +120,9 @@ WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
SetFocus(HElv);
/* FALLTHROUGH */
case WA_CLICKACTIVE:
- F(f);
t = T(0);
P("track_episodes","update_tracked_episodes",0,t);
ElvRedraw();
- Fd(f);
}
break;
case WM_NOTIFY:
@@ -155,11 +152,9 @@ WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case ID_FORGET:
case ID_LOOKUP:
{
- fid_t f;
term_t t;
extern LPLVITEM LpLviElvSelection;
- F(f);
t = T(1);
PI(t,LpLviElvSelection->lParam) break;
@@ -183,8 +178,6 @@ WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
DlvShowEpisode(LpLviElvSelection->lParam);
break;
}
-
- Fd(f);
break;
}
}
@@ -223,18 +216,11 @@ AboutDlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
int
Attach()
{
- fid_t f;
term_t t;
-
- F(f);
t = T(0);
- P("track_episodes","attach",0,t) goto f;
- P("episode_data","attach",0,t) goto f;
-
- Fd(f);
+ P("track_episodes","attach",0,t) return 0;
+ P("episode_data","attach",0,t) return 0;
return 1;
-f: Fd(f);
- return 0;
}
void