diff options
Diffstat (limited to 'frontends/windows/local_history.c')
-rw-r--r-- | frontends/windows/local_history.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/frontends/windows/local_history.c b/frontends/windows/local_history.c index f4474236e..722d365e7 100644 --- a/frontends/windows/local_history.c +++ b/frontends/windows/local_history.c @@ -111,11 +111,7 @@ nsw32_local_history_draw(struct nsw32_corewindow *nsw32_cw, lhw = (struct nsw32_local_history_window *)nsw32_cw; - local_history_redraw(lhw->session, - r->x0 - scrollx, - r->y0 - scrolly, - r, - &ctx); + local_history_redraw(lhw->session, -scrollx, -scrolly, r, &ctx); return NSERROR_OK; } @@ -147,7 +143,7 @@ nsw32_local_history_init(HINSTANCE hInstance, return res; } - ncwin = malloc(sizeof(struct nsw32_local_history_window)); + ncwin = calloc(1, sizeof(*ncwin)); if (ncwin == NULL) { return NSERROR_NOMEM; } |