diff options
Diffstat (limited to 'frontends/windows/hotlist.c')
-rw-r--r-- | frontends/windows/hotlist.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/frontends/windows/hotlist.c b/frontends/windows/hotlist.c index c184619bf..e8dd90b34 100644 --- a/frontends/windows/hotlist.c +++ b/frontends/windows/hotlist.c @@ -85,6 +85,8 @@ nsw32_hotlist_mouse(struct nsw32_corewindow *nsw32_cw, * callback on draw event for hotlist window * * \param nsw32_cw The nsw32 core window structure. + * \param scrollx The horizontal scroll offset. + * \param scrolly The vertical scroll offset. * \param r The rectangle of the window that needs updating. * \return NSERROR_OK on success otherwise apropriate error code */ @@ -128,7 +130,7 @@ static nserror nsw32_hotlist_init(HINSTANCE hInstance) return NSERROR_OK; } - ncwin = malloc(sizeof(struct nsw32_hotlist_window)); + ncwin = calloc(1, sizeof(*ncwin)); if (ncwin == NULL) { return NSERROR_NOMEM; } @@ -182,7 +184,7 @@ nserror nsw32_hotlist_finalise(void) return NSERROR_OK; } - res = hotlist_fini(nsoption_charp(hotlist_path)); + res = hotlist_fini(); if (res == NSERROR_OK) { res = nsw32_corewindow_fini(&hotlist_window->core); DestroyWindow(hotlist_window->core.hWnd); |