Commit b231a202 authored by Hanspeter Portner's avatar Hanspeter Portner

nk: fix last commit.

parent 3db5e6ea
Pipeline #16901706 (#) passed with stages
in 5 minutes and 47 seconds
......@@ -2394,11 +2394,11 @@ _expose(struct nk_context *ctx, struct nk_rect wbounds, void *data)
{
char *cmd;
#if defined(_WIN32)
if(asprintf(&cmd, "cmd /c start %s", handle->manual) == -1)
if(asprintf(&cmd, "cmd /c start %s", handle->manual) != -1)
#elif defined(__APPLE__)
if(asprintf(&cmd, "open %s", handle->manual) == -1)
if(asprintf(&cmd, "open %s", handle->manual) != -1)
#else
if(asprintf(&cmd, "xdg-open %s &", handle->manual) == -1)
if(asprintf(&cmd, "xdg-open %s &", handle->manual) != -1)
#endif
{
system(cmd);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment