diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2020-02-24 12:10:35 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2020-02-24 12:10:35 +0000 |
commit | e59e52b8539b041153e4cdd80756806b06cf4892 (patch) | |
tree | 09cf961347c510d57f3712e49e69771a0928fefa /frontends/windows/window.c | |
parent | 2fa06ed503fa18239b8d7a32c88ac24b8b8c0121 (diff) | |
download | netsurf-e59e52b8539b041153e4cdd80756806b06cf4892.tar.gz |
windows: Convert the remaining NoMemory warnings which aren't about memory
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'frontends/windows/window.c')
-rw-r--r-- | frontends/windows/window.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/frontends/windows/window.c b/frontends/windows/window.c index f4c1ac33a..716039aeb 100644 --- a/frontends/windows/window.c +++ b/frontends/windows/window.c @@ -1120,9 +1120,10 @@ nsws_window_command(HWND hwnd, case IDM_NAV_HOME: { nsurl *url; + ret = nsurl_create(nsoption_charp(homepage_url), &url); - if (nsurl_create(nsoption_charp(homepage_url), &url) != NSERROR_OK) { - win32_warning("NoMemory", 0); + if (ret != NSERROR_OK) { + win32_report_nserror(ret, 0); } else { browser_window_navigate(gw->bw, url, @@ -1952,13 +1953,15 @@ bool nsws_window_go(HWND hwnd, const char *urltxt) { struct gui_window *gw; nsurl *url; + nserror ret; gw = nsws_get_gui_window(hwnd); if (gw == NULL) return false; + ret = nsurl_create(urltxt, &url); - if (nsurl_create(urltxt, &url) != NSERROR_OK) { - win32_warning("NoMemory", 0); + if (ret != NSERROR_OK) { + win32_report_nserror(ret, 0); } else { browser_window_navigate(gw->bw, url, |