mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-23 18:52:09 +01:00
Merge branch 'backport-3359-win32-strcmp-glib-2-74' into 'glib-2-74'
Backport !3359 “GWin32AppInfo: Fix g_str_has_prefix() check” to glib-2-74 See merge request GNOME/glib!3360
This commit is contained in:
commit
bd9dd2ef1b
@ -4349,7 +4349,7 @@ expand_macro_single (char macro, file_or_uri *obj)
|
|||||||
const char *prefix = "file:///";
|
const char *prefix = "file:///";
|
||||||
const size_t prefix_len = strlen (prefix);
|
const size_t prefix_len = strlen (prefix);
|
||||||
|
|
||||||
if (g_str_has_prefix (obj->uri, prefix) == 0 && obj->uri[prefix_len] != 0)
|
if (g_str_has_prefix (obj->uri, prefix) && obj->uri[prefix_len] != 0)
|
||||||
{
|
{
|
||||||
GFile *file = g_file_new_for_uri (obj->uri);
|
GFile *file = g_file_new_for_uri (obj->uri);
|
||||||
result = g_file_get_path (file);
|
result = g_file_get_path (file);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user