From b1bcc0cbb258d3b697147c80c410e8df6843f376 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Mon, 25 Mar 2019 16:17:33 +0900 Subject: [PATCH] Fix build issues on MinGW --- src/fcxml.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/fcxml.c b/src/fcxml.c index 88804d7..0ca283e 100644 --- a/src/fcxml.c +++ b/src/fcxml.c @@ -1338,7 +1338,7 @@ _get_real_path_from_prefix(FcConfigParse *parse, const FcChar8 *path, const FcCh if (!GetModuleFileName (NULL, (LPCH) buffer, sizeof (buffer) - 20)) { FcConfigMessage (parse, FcSevereError, "GetModuleFileName failed"); - goto bail; + return NULL; } /* * Must use the multi-byte aware function to search @@ -1357,7 +1357,7 @@ _get_real_path_from_prefix(FcConfigParse *parse, const FcChar8 *path, const FcCh if (!GetModuleFileName (NULL, (LPCH) buffer, sizeof (buffer) - 20)) { FcConfigMessage (parse, FcSevereError, "GetModuleFileName failed"); - goto bail; + return NULL; } p = _mbsrchr (data, '\\'); if (p) *p = '\0'; @@ -1371,7 +1371,7 @@ _get_real_path_from_prefix(FcConfigParse *parse, const FcChar8 *path, const FcCh if (rc == 0 || rc > sizeof (buffer) - 20) { FcConfigMessage (parse, FcSevereError, "GetSystemWindowsDirectory failed"); - goto bail; + return NULL; } if (data [strlen ((const char *) data) - 1] != '\\') strcat ((char *) data, "\\");