From 8c8e9cc7e66bb3b708b3634ffd1abf63b6c01e53 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Thu, 11 Oct 2012 12:52:47 +0100 Subject: lwc_string_isequal takes a bool for result. --- cocoa/BrowserViewController.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cocoa/BrowserViewController.m b/cocoa/BrowserViewController.m index 76518a2d4..f8b26e12f 100644 --- a/cocoa/BrowserViewController.m +++ b/cocoa/BrowserViewController.m @@ -149,7 +149,8 @@ if (scheme == NULL) return; - if (lwc_string_isequal(scheme, corestring_lwc_file) == 0) + bool match; + if (lwc_string_isequal(scheme, corestring_lwc_file, &match) == lwc_error_ok && match == true) path = url_to_path(nsurl_access(hlcache_handle_get_url(content))); lwc_string_unref(scheme); -- cgit v1.2.3